From b62338f8a018d257688399e42f3af006b8745da8 Mon Sep 17 00:00:00 2001 From: ktseng37 Date: Wed, 17 Jul 2024 20:33:02 -0700 Subject: [PATCH] add docstring to series.to_dict --- ci/code_checks.sh | 1 - pandas/core/series.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5dbec7f0c8a28..52589aacefa74 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -206,7 +206,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.str.wrap RT03,SA01" \ -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" \ diff --git a/pandas/core/series.py b/pandas/core/series.py index 3d1bd8ebb03cb..e945cec4bb1fd 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1713,6 +1713,12 @@ def to_dict( collections.abc.MutableMapping Key-value representation of Series. + See Also + -------- + Series.to_list: Converts Series to a list of the values. + Series.to_numpy: Converts Series to NumPy ndarray. + Series.array: ExtensionArray of the data backing this Series. + Examples -------- >>> s = pd.Series([1, 2, 3, 4])