Skip to content

Commit

Permalink
DOC: Fix some RT02 issues in docstrings (#50659)
Browse files Browse the repository at this point in the history
* Corrected docstrings

* remove functions from code_checks.sh
  • Loading branch information
DeaMariaLeon authored Jan 10, 2023
1 parent 1bcf42e commit 32b3308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
10 changes: 5 additions & 5 deletions pandas/core/arrays/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def rename_categories(self, new_categories) -> Categorical:
Returns
-------
cat : Categorical
Categorical
Categorical with renamed categories.
Raises
Expand Down Expand Up @@ -1001,7 +1001,7 @@ def reorder_categories(self, new_categories, ordered=None):
Returns
-------
cat : Categorical
Categorical
Categorical with reordered categories.
Raises
Expand Down Expand Up @@ -1041,7 +1041,7 @@ def add_categories(self, new_categories) -> Categorical:
Returns
-------
cat : Categorical
Categorical
Categorical with new categories added.
Raises
Expand Down Expand Up @@ -1110,7 +1110,7 @@ def remove_categories(self, removals):
Returns
-------
cat : Categorical
Categorical
Categorical with removed categories.
Raises
Expand Down Expand Up @@ -1160,7 +1160,7 @@ def remove_unused_categories(self) -> Categorical:
Returns
-------
cat : Categorical
Categorical
Categorical with unused categories dropped.
See Also
Expand Down

0 comments on commit 32b3308

Please sign in to comment.