Skip to content

Commit 32b3308

Browse files
authored
DOC: Fix some RT02 issues in docstrings (#50659)
* Corrected docstrings * remove functions from code_checks.sh
1 parent 1bcf42e commit 32b3308

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

ci/code_checks.sh

-5
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9494
pandas.Series.cat.remove_unused_categories \
9595
pandas.Index.all \
9696
pandas.Index.any \
97-
pandas.CategoricalIndex.rename_categories \
98-
pandas.CategoricalIndex.reorder_categories \
99-
pandas.CategoricalIndex.add_categories \
100-
pandas.CategoricalIndex.remove_categories \
101-
pandas.CategoricalIndex.remove_unused_categories \
10297
pandas.MultiIndex.drop \
10398
pandas.DatetimeIndex.to_pydatetime \
10499
pandas.TimedeltaIndex.to_pytimedelta \

pandas/core/arrays/categorical.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def rename_categories(self, new_categories) -> Categorical:
935935
936936
Returns
937937
-------
938-
cat : Categorical
938+
Categorical
939939
Categorical with renamed categories.
940940
941941
Raises
@@ -1001,7 +1001,7 @@ def reorder_categories(self, new_categories, ordered=None):
10011001
10021002
Returns
10031003
-------
1004-
cat : Categorical
1004+
Categorical
10051005
Categorical with reordered categories.
10061006
10071007
Raises
@@ -1041,7 +1041,7 @@ def add_categories(self, new_categories) -> Categorical:
10411041
10421042
Returns
10431043
-------
1044-
cat : Categorical
1044+
Categorical
10451045
Categorical with new categories added.
10461046
10471047
Raises
@@ -1110,7 +1110,7 @@ def remove_categories(self, removals):
11101110
11111111
Returns
11121112
-------
1113-
cat : Categorical
1113+
Categorical
11141114
Categorical with removed categories.
11151115
11161116
Raises
@@ -1160,7 +1160,7 @@ def remove_unused_categories(self) -> Categorical:
11601160
11611161
Returns
11621162
-------
1163-
cat : Categorical
1163+
Categorical
11641164
Categorical with unused categories dropped.
11651165
11661166
See Also

0 commit comments

Comments
 (0)