We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
core.ops has a check elif is_categorical_dtype(y) and not is_scalar(y):.
core.ops
elif is_categorical_dtype(y) and not is_scalar(y):
AFAICT the only case with is_categorical_dtype that is scalar is "category". Am I missing a non-trivial case?
is_categorical_dtype
"category"