Skip to content

Commit 661d7f0

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.Index.to_list (#58398)
* DOC: added RT03 to pandas.Index.to_list * DOC: remove pandas.Index.to_list * DOC: remove pandas.Series.tolist
1 parent 53609a7 commit 661d7f0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
147147
-i "pandas.Index.str PR01,SA01" \
148148
-i "pandas.Index.symmetric_difference PR07,RT03,SA01" \
149149
-i "pandas.Index.take PR01,PR07" \
150-
-i "pandas.Index.to_list RT03" \
151150
-i "pandas.Index.union PR07,RT03,SA01" \
152151
-i "pandas.Index.view GL08" \
153152
-i "pandas.Int16Dtype SA01" \
@@ -368,7 +367,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
368367
-i "pandas.Series.swaplevel SA01" \
369368
-i "pandas.Series.to_dict SA01" \
370369
-i "pandas.Series.to_frame SA01" \
371-
-i "pandas.Series.to_list RT03" \
372370
-i "pandas.Series.to_markdown SA01" \
373371
-i "pandas.Series.to_string SA01" \
374372
-i "pandas.Series.truediv PR07" \

Diff for: pandas/core/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ def tolist(self) -> list:
789789
Returns
790790
-------
791791
list
792+
List containing the values as Python or pandas scalers.
792793
793794
See Also
794795
--------

0 commit comments

Comments
 (0)