diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 101d650a0e768..ebf00f79d6659 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -151,7 +151,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.str PR01,SA01" \ -i "pandas.Index.symmetric_difference PR07,RT03,SA01" \ -i "pandas.Index.take PR01,PR07" \ - -i "pandas.Index.to_list RT03" \ -i "pandas.Index.union PR07,RT03,SA01" \ -i "pandas.Index.view GL08" \ -i "pandas.Int16Dtype SA01" \ @@ -375,7 +374,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.swaplevel SA01" \ -i "pandas.Series.to_dict SA01" \ -i "pandas.Series.to_frame SA01" \ - -i "pandas.Series.to_list RT03" \ -i "pandas.Series.to_markdown SA01" \ -i "pandas.Series.to_string SA01" \ -i "pandas.Series.truediv PR07" \ diff --git a/pandas/core/base.py b/pandas/core/base.py index 424f0609dd485..d716a9ffb7bcc 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -789,6 +789,7 @@ def tolist(self) -> list: Returns ------- list + List containing the values as Python or pandas scalers. See Also --------