-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Closed
Labels
CategoricalCategorical Data TypeCategorical Data Type
Milestone
Description
Docs:
-
np.asarray(s2.cat)->np.asarray(s2) -
Series(.....dtype='categorical')example, ENH: add support dtype='category' in Series constructor #8075 - Add docstring about internal useage to to_dense and from_array
- go through the docs and change levels -> categories
- clarify docs on usage of
Categorical(public API restricted to creation (to specify levels/ordered, or to put in dataframe) don't use its methods/properties (->s.catis for that), apart fromfrom_codesand maybe in a "under the hood" section ) - underline in categoriecal.rst
Code
-
cutfixups, see API: update pd.cut with the new categorical integration #8077 - change
__repr__ofCategorical(Discussion: feedback on the Categorical integration #8074 (comment)) - rename
levels->categories; add FutureWarning if levels is used in constructor and accessor -
reorder_levelsandremove_unused_levelsnot inplace by default (and addinplacekeyword, default False) -
s.unique()should return an array instead of index (-> np.asarray(self.levels)) - Add
Series.cat.codes(wrapped into a Series) - remove
compatkwarg (+ update docs on this -> usefrom_codes) - add rename/add/remove/reorder only methods and a "takes it all" method (probably
set_levels(new_levels, rename=False) - make assigning to
categoriesstrict (no additions/removals) - fix for Problem in BUG: inconsistent behaviour of Groupby with empty bins when grouping by single/multiple keys #8138
- Failing Test on python 3.4
Metadata
Metadata
Assignees
Labels
CategoricalCategorical Data TypeCategorical Data Type