File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
84
84
-i " pandas.RangeIndex.stop SA01" \
85
85
-i " pandas.Series.cat.add_categories PR01,PR02" \
86
86
-i " pandas.Series.cat.as_ordered PR01" \
87
- -i " pandas.Series.cat.as_unordered PR01" \
88
87
-i " pandas.Series.cat.remove_categories PR01,PR02" \
89
88
-i " pandas.Series.cat.remove_unused_categories PR01" \
90
89
-i " pandas.Series.cat.rename_categories PR01,PR02" \
Original file line number Diff line number Diff line change @@ -1008,6 +1008,18 @@ def as_unordered(self) -> Self:
1008
1008
"""
1009
1009
Set the Categorical to be unordered.
1010
1010
1011
+ This method sets the `ordered` attribute of the Categorical to `False`.
1012
+ An unordered Categorical does not have any meaningful ordering among
1013
+ its categories, which can be useful when the order of the categories
1014
+ is not relevant for analysis or visualization.
1015
+
1016
+ Parameters
1017
+ ----------
1018
+ *args : iterable, optional
1019
+ Positional arguments passed into `func`.
1020
+ **kwargs : dict, optional
1021
+ A dictionary of keyword arguments passed into `func`.
1022
+
1011
1023
Returns
1012
1024
-------
1013
1025
Categorical
You can’t perform that action at this time.
0 commit comments