From 66ac9d54abfdd3bac23bb2b2d245a6ef43a2b19c Mon Sep 17 00:00:00 2001 From: nrezhang Date: Sun, 21 Apr 2024 17:32:57 -0400 Subject: [PATCH] DOC: fix docstring for DataFrame.pop #58065 --- ci/code_checks.sh | 1 - pandas/core/frame.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index cabc25b5e0ba5..da80e5c3f0770 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DataFrame.median RT03,SA01" \ -i "pandas.DataFrame.min RT03" \ -i "pandas.DataFrame.plot PR02,SA01" \ - -i "pandas.DataFrame.pop SA01" \ -i "pandas.DataFrame.prod RT03" \ -i "pandas.DataFrame.product RT03" \ -i "pandas.DataFrame.reorder_levels SA01" \ diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0185ca8241617..73b8d88478078 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5535,6 +5535,11 @@ def pop(self, item: Hashable) -> Series: Series Series representing the item that is dropped. + See Also + -------- + DataFrame.drop : Remove rows or columns by specifying label names and + corresponding axis, or by directly specifying index or column names. + Examples -------- >>> df = pd.DataFrame(