Skip to content

Commit 692e01a

Browse files
DOC: add SA01 for pandas.api.extensions.ExtensionArray._from_sequence_of_strings (#58766)
1 parent 87a6ba6 commit 692e01a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
292292
-i "pandas.Timestamp.value GL08" \
293293
-i "pandas.Timestamp.weekday SA01" \
294294
-i "pandas.Timestamp.year GL08" \
295-
-i "pandas.api.extensions.ExtensionArray._from_sequence_of_strings SA01" \
296295
-i "pandas.api.extensions.ExtensionArray._hash_pandas_object RT03,SA01" \
297296
-i "pandas.api.extensions.ExtensionArray._pad_or_backfill PR01,RT03,SA01" \
298297
-i "pandas.api.extensions.ExtensionArray._reduce RT03,SA01" \

pandas/core/arrays/base.py

+10
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,16 @@ def _from_sequence_of_strings(
365365
-------
366366
ExtensionArray
367367
368+
See Also
369+
--------
370+
api.extensions.ExtensionArray._from_sequence : Construct a new ExtensionArray
371+
from a sequence of scalars.
372+
api.extensions.ExtensionArray._from_factorized : Reconstruct an ExtensionArray
373+
after factorization.
374+
api.extensions.ExtensionArray._from_scalars : Strict analogue to _from_sequence,
375+
allowing only sequences of scalars that should be specifically inferred to
376+
the given dtype.
377+
368378
Examples
369379
--------
370380
>>> pd.arrays.IntegerArray._from_sequence_of_strings(

0 commit comments

Comments
 (0)