Skip to content

Commit a94dd99

Browse files
authored
DOC: add See Also section to series.to_dict (#59269)
add docstring to series.to_dict
1 parent fc8fc82 commit a94dd99

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
195195
-i "pandas.Series.str.wrap RT03,SA01" \
196196
-i "pandas.Series.str.zfill RT03" \
197197
-i "pandas.Series.struct.dtypes SA01" \
198-
-i "pandas.Series.to_dict SA01" \
199198
-i "pandas.Series.to_markdown SA01" \
200199
-i "pandas.Series.update PR07,SA01" \
201200
-i "pandas.Timedelta.asm8 SA01" \

pandas/core/series.py

+6
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,12 @@ def to_dict(
17121712
collections.abc.MutableMapping
17131713
Key-value representation of Series.
17141714
1715+
See Also
1716+
--------
1717+
Series.to_list: Converts Series to a list of the values.
1718+
Series.to_numpy: Converts Series to NumPy ndarray.
1719+
Series.array: ExtensionArray of the data backing this Series.
1720+
17151721
Examples
17161722
--------
17171723
>>> s = pd.Series([1, 2, 3, 4])

0 commit comments

Comments
 (0)