Skip to content

Commit fc8fc82

Browse files
Aditya060mroeschke
andauthored
Removed SA01 error for pandas.Series.to_frame. Added See Also section… (#59262)
* 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. * Update pandas/core/series.py Co-authored-by: Matthew Roeschke <[email protected]> * Update pandas/core/series.py Co-authored-by: Matthew Roeschke <[email protected]> --------- Co-authored-by: Matthew Roeschke <[email protected]>
1 parent d8cfd52 commit fc8fc82

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/code_checks.sh

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

pandas/core/series.py

+4
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,10 @@ def to_frame(self, name: Hashable = lib.no_default) -> DataFrame:
17491749
DataFrame
17501750
DataFrame representation of Series.
17511751
1752+
See Also
1753+
--------
1754+
Series.to_dict : Convert Series to dict object.
1755+
17521756
Examples
17531757
--------
17541758
>>> s = pd.Series(["a", "b", "c"], name="vals")

0 commit comments

Comments
 (0)