You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.cat is for that), apart from from_codes and maybe in a "under the hood" section )
Docs:
np.asarray(s2.cat)
->np.asarray(s2)
Series(.....dtype='categorical')
example, ENH: add support dtype='category' in Series constructor #8075Categorical
(public API restricted to creation (to specify levels/ordered, or to put in dataframe) don't use its methods/properties (->s.cat
is for that), apart fromfrom_codes
and maybe in a "under the hood" section )Code
cut
fixups, see API: update pd.cut with the new categorical integration #8077__repr__
ofCategorical
(Discussion: feedback on the Categorical integration #8074 (comment))levels
->categories
; add FutureWarning if levels is used in constructor and accessorreorder_levels
andremove_unused_levels
not inplace by default (and addinplace
keyword, default False)s.unique()
should return an array instead of index (-> np.asarray(self.levels))Series.cat.codes
(wrapped into a Series)compat
kwarg (+ update docs on this -> usefrom_codes
)set_levels(new_levels, rename=False)
categories
strict (no additions/removals)The text was updated successfully, but these errors were encountered: