From 57e15000e1113eae83ce365b4c111d319d56accb Mon Sep 17 00:00:00 2001 From: Dea Leon Date: Tue, 10 Jan 2023 17:38:26 +0100 Subject: [PATCH 1/2] Corrected docstrings --- pandas/core/arrays/categorical.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index abc3d9e8ce9db..6d907452b8f6d 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -935,7 +935,7 @@ def rename_categories(self, new_categories) -> Categorical: Returns ------- - cat : Categorical + Categorical Categorical with renamed categories. Raises @@ -1001,7 +1001,7 @@ def reorder_categories(self, new_categories, ordered=None): Returns ------- - cat : Categorical + Categorical Categorical with reordered categories. Raises @@ -1041,7 +1041,7 @@ def add_categories(self, new_categories) -> Categorical: Returns ------- - cat : Categorical + Categorical Categorical with new categories added. Raises @@ -1110,7 +1110,7 @@ def remove_categories(self, removals): Returns ------- - cat : Categorical + Categorical Categorical with removed categories. Raises @@ -1160,7 +1160,7 @@ def remove_unused_categories(self) -> Categorical: Returns ------- - cat : Categorical + Categorical Categorical with unused categories dropped. See Also From dc53b43e072ef2947fabf7e9e7545d1a36458346 Mon Sep 17 00:00:00 2001 From: Dea Leon Date: Tue, 10 Jan 2023 20:09:52 +0100 Subject: [PATCH 2/2] remove functions from code_checks.sh --- ci/code_checks.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5d2f176d6bcd8..6df5d00d62afb 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -94,11 +94,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.cat.remove_unused_categories \ pandas.Index.all \ pandas.Index.any \ - pandas.CategoricalIndex.rename_categories \ - pandas.CategoricalIndex.reorder_categories \ - pandas.CategoricalIndex.add_categories \ - pandas.CategoricalIndex.remove_categories \ - pandas.CategoricalIndex.remove_unused_categories \ pandas.MultiIndex.drop \ pandas.DatetimeIndex.to_pydatetime \ pandas.TimedeltaIndex.to_pytimedelta \