pandas.Categorical.array β pandas 1.0.1 documentation (original) (raw)
Categorical.
__array__
(self, dtype=None) β numpy.ndarray[source]ΒΆ
The numpy array interface.
Returns
numpy.array
A numpy array of either the specified dtype or, if dtype==None (default), the same dtype as categorical.categories.dtype.