diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 255e680d8dacb..70afb1c6cae18 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -199,7 +199,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.str.zfill RT03" \ -i "pandas.Series.struct.dtypes SA01" \ -i "pandas.Series.to_dict SA01" \ - -i "pandas.Series.to_frame SA01" \ -i "pandas.Series.to_markdown SA01" \ -i "pandas.Series.update PR07,SA01" \ -i "pandas.Timedelta.asm8 SA01" \ diff --git a/pandas/core/series.py b/pandas/core/series.py index 184c774d04a47..5b73c94442f1c 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1749,6 +1749,10 @@ def to_frame(self, name: Hashable = lib.no_default) -> DataFrame: DataFrame DataFrame representation of Series. + See Also + -------- + Series.to_dict : Convert Series to dict object. + Examples -------- >>> s = pd.Series(["a", "b", "c"], name="vals")