Skip to content

Commit

Permalink
DOC: add RT03,SA01 for pandas.api.extensions.ExtensionArray._hash_pan…
Browse files Browse the repository at this point in the history
…das_object (#58784)
  • Loading branch information
tuhinsharma121 committed May 19, 2024
1 parent 31c2836 commit a7ea77e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.value GL08" \
-i "pandas.Timestamp.weekday SA01" \
-i "pandas.Timestamp.year GL08" \
-i "pandas.api.extensions.ExtensionArray._hash_pandas_object RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray._pad_or_backfill PR01,RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray._reduce RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray._values_for_factorize SA01" \
Expand Down
7 changes: 7 additions & 0 deletions pandas/core/arrays/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,13 @@ def _hash_pandas_object(
Returns
-------
np.ndarray[uint64]
An array of hashed values.
See Also
--------
api.extensions.ExtensionArray._values_for_factorize : Return an array and
missing value suitable for factorization.
util.hash_array : Given a 1d array, return an array of hashed values.
Examples
--------
Expand Down

0 comments on commit a7ea77e

Please sign in to comment.