Skip to content

Commit

Permalink
DOC: add SA01 for pandas.Series.to_string (#58779)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 committed May 19, 2024
1 parent e7124c7 commit ab12958
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -220,7 +220,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Series.to_dict SA01" \
-i "pandas.Series.to_frame SA01" \
-i "pandas.Series.to_markdown SA01" \
-i "pandas.Series.to_string SA01" \
-i "pandas.Series.update PR07,SA01" \
-i "pandas.Timedelta.as_unit SA01" \
-i "pandas.Timedelta.asm8 SA01" \
Expand Down
7 changes: 7 additions & 0 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,13 @@ def to_string(
str or None
String representation of Series if ``buf=None``, otherwise None.
See Also
--------
Series.to_dict : Convert Series to dict object.
Series.to_frame : Convert Series to DataFrame object.
Series.to_markdown : Print Series in Markdown-friendly format.
Series.to_timestamp : Cast to DatetimeIndex of Timestamps.
Examples
--------
>>> ser = pd.Series([1, 2, 3]).to_string()
Expand Down

0 comments on commit ab12958

Please sign in to comment.