From 59bb3f44a9bdd6d79704caab4d5c4e229945aefd Mon Sep 17 00:00:00 2001 From: Alex <134091510+awojno-bloomberg@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:25:14 -0400 Subject: [PATCH] DOC: Update Series docs for Series.update (#59579) DOC: Update Series docs pandas.Series.update --- 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 f1aeda9cbdc9d..e9f4ee1f391a2 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -161,7 +161,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.str.zfill RT03" \ -i "pandas.Series.struct.dtypes SA01" \ -i "pandas.Series.to_markdown SA01" \ - -i "pandas.Series.update PR07,SA01" \ -i "pandas.Timedelta.asm8 SA01" \ -i "pandas.Timedelta.ceil SA01" \ -i "pandas.Timedelta.components SA01" \ diff --git a/pandas/core/series.py b/pandas/core/series.py index a197886748bce..5c35c6c0d6d23 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3211,6 +3211,13 @@ def update(self, other: Series | Sequence | Mapping) -> None: Parameters ---------- other : Series, or object coercible into Series + Other Series that provides values to update the current Series. + + See Also + -------- + Series.combine : Perform element-wise operation on two Series + using a given function. + Series.transform: Modify a Series using a function. Examples --------