pandas.util.hash_pandas_object#

pandas.util.hash_pandas_object(obj, index=True, encoding='utf8', hash_key='0123456789123456', categorize=True)[源代码]#

返回Index/Series/DataFrame的数据哈希。

参数
obj索引、系列或DataFrame
index布尔值,默认为True

在哈希中包括索引(如果是Series/DataFrame)。

encoding字符串,默认‘utf8’

对数据和关键字When字符串进行编码。

hash_key字符串,Default_Default_Hash_Key

要编码的字符串密钥的HASH_KEY。

categorize布尔值,默认为True

是否先对对象数组进行分类,然后再进行哈希。当数组包含重复值时,这会更有效率。

退货
一系列uint64,与对象长度相同