From ab1295831d8e4eefdd12b559dd424210fe8c11eb Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sun, 19 May 2024 23:52:28 +0530 Subject: [PATCH] DOC: add SA01 for pandas.Series.to_string (#58779) --- ci/code_checks.sh | 1 - pandas/core/series.py | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a77c6a2055661..f593f330c3094 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -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" \ diff --git a/pandas/core/series.py b/pandas/core/series.py index 918a4424e1ed9..8921694e43607 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -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()