Skip to content

Commit

Permalink
DOC: add SA01 for pandas.api.extensions.ExtensionArray._from_sequence…
Browse files Browse the repository at this point in the history
…_of_strings (#58766)
  • Loading branch information
tuhinsharma121 committed May 18, 2024
1 parent 87a6ba6 commit 692e01a
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -292,7 +292,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._from_sequence_of_strings SA01" \
-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" \
Expand Down
10 changes: 10 additions & 0 deletions pandas/core/arrays/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,16 @@ def _from_sequence_of_strings(
-------
ExtensionArray
See Also
--------
api.extensions.ExtensionArray._from_sequence : Construct a new ExtensionArray
from a sequence of scalars.
api.extensions.ExtensionArray._from_factorized : Reconstruct an ExtensionArray
after factorization.
api.extensions.ExtensionArray._from_scalars : Strict analogue to _from_sequence,
allowing only sequences of scalars that should be specifically inferred to
the given dtype.
Examples
--------
>>> pd.arrays.IntegerArray._from_sequence_of_strings(
Expand Down

0 comments on commit 692e01a

Please sign in to comment.