Get the same hash value for a Pandas DataFrame each time

后端 未结 3 1554
执念已碎
执念已碎 2020-12-13 18:11

My goal is to get unique hash value for a DataFrame. I obtain it out of .csv file. Whole point is to get the same hash each time I call hash() on it.

My idea was t

3条回答
  •  执笔经年
    2020-12-13 19:03

    Joblib provides a hashing function optimized for objects containing numpy arrays (e.g. pandas dataframes).

    import joblib
    joblib.hash(df)
    

提交回复
热议问题