Skip to content

Commit

Permalink
Removed SA01 error for pandas.Series.to_frame. Added See Also section… (
Browse files Browse the repository at this point in the history
pandas-dev#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]>
  • Loading branch information
Aditya060 and mroeschke authored Jul 17, 2024
1 parent d8cfd52 commit fc8fc82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,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" \
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fc8fc82

Please sign in to comment.