Skip to content

Commit 1c32b95

Browse files
committed
DOCS: pandas.Series.list.__getitem__ + pandas.Series.list.flatten + pandas.Series.list.len SA01 docstring validation error fixed
1 parent 8d8caa9 commit 1c32b95

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
134134
-i "pandas.Series.dt.tz_localize PR01,PR02" \
135135
-i "pandas.Series.dt.unit GL08" \
136136
-i "pandas.Series.gt SA01" \
137-
-i "pandas.Series.list.__getitem__ SA01" \
138-
-i "pandas.Series.list.flatten SA01" \
139-
-i "pandas.Series.list.len SA01" \
140137
-i "pandas.Series.lt SA01" \
141138
-i "pandas.Series.ne SA01" \
142139
-i "pandas.Series.pad PR01,SA01" \

pandas/core/arrays/arrow/accessors.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ def len(self) -> Series:
9292
pandas.Series
9393
The length of each list.
9494
95+
See Also
96+
--------
97+
str.len : Python built-in function returning the length of an object.
98+
Series.size : Returns the length of the Series.
99+
StringMethods.len : Compute the length of each element in the Series/Index.
100+
95101
Examples
96102
--------
97103
>>> import pyarrow as pa
@@ -128,6 +134,10 @@ def __getitem__(self, key: int | slice) -> Series:
128134
pandas.Series
129135
The list at requested index.
130136
137+
See Also
138+
--------
139+
ListAccessor.flatten : Flatten list values.
140+
131141
Examples
132142
--------
133143
>>> import pyarrow as pa
@@ -187,6 +197,10 @@ def flatten(self) -> Series:
187197
pandas.Series
188198
The data from all lists in the series flattened.
189199
200+
See Also
201+
--------
202+
ListAccessor.__getitem__ : Index or slice values in the Series.
203+
190204
Examples
191205
--------
192206
>>> import pyarrow as pa

0 commit comments

Comments
 (0)