@@ -214,7 +214,7 @@ def contains(cat, key, container):
214214
215215class Categorical (ExtensionArray , PandasObject ):
216216 """
217- Represents a categorical variable in classic R / S-plus fashion
217+ Represent a categorical variable in classic R / S-plus fashion
218218
219219 `Categoricals` can only take on only a limited, and usually fixed, number
220220 of possible values (`categories`). In contrast to statistical categorical
@@ -747,7 +747,7 @@ def _set_dtype(self, dtype):
747747
748748 def set_ordered (self , value , inplace = False ):
749749 """
750- Sets the ordered attribute to the boolean value
750+ Set the ordered attribute to the boolean value
751751
752752 Parameters
753753 ----------
@@ -793,7 +793,7 @@ def as_unordered(self, inplace=False):
793793 def set_categories (self , new_categories , ordered = None , rename = False ,
794794 inplace = False ):
795795 """
796- Sets the categories to the specified new_categories.
796+ Set the categories to the specified new_categories.
797797
798798 `new_categories` can include new categories (which will result in
799799 unused categories) or remove old categories (which results in values
@@ -864,7 +864,7 @@ def set_categories(self, new_categories, ordered=None, rename=False,
864864
865865 def rename_categories (self , new_categories , inplace = False ):
866866 """
867- Renames categories.
867+ Rename categories.
868868
869869 Parameters
870870 ----------
@@ -958,7 +958,7 @@ def rename_categories(self, new_categories, inplace=False):
958958
959959 def reorder_categories (self , new_categories , ordered = None , inplace = False ):
960960 """
961- Reorders categories as specified in new_categories.
961+ Reorder categories as specified in new_categories.
962962
963963 `new_categories` need to include all old categories and no new category
964964 items.
@@ -1051,7 +1051,7 @@ def add_categories(self, new_categories, inplace=False):
10511051
10521052 def remove_categories (self , removals , inplace = False ):
10531053 """
1054- Removes the specified categories.
1054+ Remove the specified categories.
10551055
10561056 `removals` must be included in the old categories. Values which were in
10571057 the removed categories will be set to NaN
@@ -1104,7 +1104,7 @@ def remove_categories(self, removals, inplace=False):
11041104
11051105 def remove_unused_categories (self , inplace = False ):
11061106 """
1107- Removes categories which are not used.
1107+ Remove categories which are not used.
11081108
11091109 Parameters
11101110 ----------
@@ -1454,7 +1454,7 @@ def dropna(self):
14541454
14551455 def value_counts (self , dropna = True ):
14561456 """
1457- Returns a Series containing counts of each category.
1457+ Return a Series containing counts of each category.
14581458
14591459 Every category will have an entry, even those with a count of 0.
14601460
@@ -1570,7 +1570,7 @@ def argsort(self, *args, **kwargs):
15701570
15711571 def sort_values (self , inplace = False , ascending = True , na_position = 'last' ):
15721572 """
1573- Sorts the Categorical by category value returning a new
1573+ Sort the Categorical by category value returning a new
15741574 Categorical by default.
15751575
15761576 While an ordering is applied to the category values, sorting in this
0 commit comments