API: provide a to_enum method for Categorical dtypes? #16749
Labels
Categorical
Categorical Data Type
Enhancement
Needs Discussion
Requires discussion from core team before further action
xref #16015
This might be something nice to provide. Specific usecase I was thinking of is interacting with
numba
- it understands enums in nopython mode, so it would be a way to work with Categoricals there.Partially working implementation below, doing something like
namedtuple
with execThe text was updated successfully, but these errors were encountered: