@@ -66,11 +66,12 @@ def hash_pandas_object(
66
66
67
67
Parameters
68
68
----------
69
- index : boolean , default True
69
+ index : bool , default True
70
70
include the index in the hash (if Series/DataFrame)
71
- encoding : string , default 'utf8'
71
+ encoding : str , default 'utf8'
72
72
encoding for data & key when strings
73
- hash_key : string key to encode, default to _default_hash_key
73
+ hash_key : str, default '_default_hash_key'
74
+ hash_key for string key to encode
74
75
categorize : bool, default True
75
76
Whether to first categorize object arrays before hashing. This is more
76
77
efficient when the array contains duplicate values.
@@ -150,8 +151,8 @@ def hash_tuples(vals, encoding="utf8", hash_key=None):
150
151
Parameters
151
152
----------
152
153
vals : MultiIndex, list-of-tuples, or single tuple
153
- encoding : string , default 'utf8'
154
- hash_key : string key to encode , default to _default_hash_key
154
+ encoding : str , default 'utf8'
155
+ hash_key : str , default ' _default_hash_key'
155
156
156
157
Returns
157
158
-------
@@ -193,8 +194,8 @@ def hash_tuple(val, encoding: str = "utf8", hash_key=None):
193
194
Parameters
194
195
----------
195
196
val : single tuple
196
- encoding : string , default 'utf8'
197
- hash_key : string key to encode , default to _default_hash_key
197
+ encoding : str , default 'utf8'
198
+ hash_key : str , default ' _default_hash_key'
198
199
199
200
Returns
200
201
-------
@@ -216,8 +217,8 @@ def _hash_categorical(c, encoding: str, hash_key: str):
216
217
Parameters
217
218
----------
218
219
c : Categorical
219
- encoding : string , default 'utf8'
220
- hash_key : string key to encode , default to _default_hash_key
220
+ encoding : str , default 'utf8'
221
+ hash_key : str , default ' _default_hash_key'
221
222
222
223
Returns
223
224
-------
@@ -253,9 +254,10 @@ def hash_array(vals, encoding: str = "utf8", hash_key=None, categorize: bool = T
253
254
Parameters
254
255
----------
255
256
vals : ndarray, Categorical
256
- encoding : string , default 'utf8'
257
+ encoding : str , default 'utf8'
257
258
encoding for data & key when strings
258
- hash_key : string key to encode, default to _default_hash_key
259
+ hash_key : str, default '_default_hash_key'
260
+ hash_key for string key to encode
259
261
categorize : bool, default True
260
262
Whether to first categorize object arrays before hashing. This is more
261
263
efficient when the array contains duplicate values.
0 commit comments