Skip to content

Commit 55441d3

Browse files
authored
DOCS: fix docstring validation errors for pandas.Series.str (#59597)
1 parent 360597c commit 55441d3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
142142
-i "pandas.Series.sparse.sp_values SA01" \
143143
-i "pandas.Series.sparse.to_coo PR07,RT03,SA01" \
144144
-i "pandas.Series.std PR01,RT03,SA01" \
145-
-i "pandas.Series.str.wrap RT03,SA01" \
146-
-i "pandas.Series.str.zfill RT03" \
147145
-i "pandas.Timedelta.asm8 SA01" \
148146
-i "pandas.Timedelta.ceil SA01" \
149147
-i "pandas.Timedelta.components SA01" \

pandas/core/strings/accessor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,7 @@ def zfill(self, width: int):
18531853
Returns
18541854
-------
18551855
Series/Index of objects.
1856+
A Series or Index where the strings are prepended with '0' characters.
18561857
18571858
See Also
18581859
--------
@@ -2385,6 +2386,13 @@ def wrap(
23852386
Returns
23862387
-------
23872388
Series or Index
2389+
A Series or Index where the strings are wrapped at the specified line width.
2390+
2391+
See Also
2392+
--------
2393+
Series.str.strip : Remove leading and trailing characters in Series/Index.
2394+
Series.str.lstrip : Remove leading characters in Series/Index.
2395+
Series.str.rstrip : Remove trailing characters in Series/Index.
23882396
23892397
Notes
23902398
-----

0 commit comments

Comments
 (0)