Skip to content

Commit f1acc1d

Browse files
committed
Removed SA01 error for pandas.Series.to_frame. Added See Also section to pandas.Series.to_frame. Modified ci/codecheks.sh and pandas/core/series.py.
1 parent b4bd4ae commit f1acc1d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
199199
-i "pandas.Series.str.zfill RT03" \
200200
-i "pandas.Series.struct.dtypes SA01" \
201201
-i "pandas.Series.to_dict SA01" \
202-
-i "pandas.Series.to_frame SA01" \
203202
-i "pandas.Series.to_markdown SA01" \
204203
-i "pandas.Series.update PR07,SA01" \
205204
-i "pandas.Timedelta.asm8 SA01" \

pandas/core/series.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,10 @@ def to_frame(self, name: Hashable = lib.no_default) -> DataFrame:
17481748
-------
17491749
DataFrame
17501750
DataFrame representation of Series.
1751+
1752+
See Also
1753+
--------
1754+
Series.to_dict : Convert Series to dict object.
17511755
17521756
Examples
17531757
--------

0 commit comments

Comments
 (0)