ak.is_categorical¶
Defined in awkward.behaviors.categorical on line 116.
- ak.is_categorical(array)¶
- Parameters
array – A possibly-categorical Awkward Array.
If the array
is categorical (contains ak.layout.IndexedArray
or
ak.layout.IndexedOptionArray
labeled with parameter
"__array__" = "categorical"
), then this function returns True;
otherwise, it returns False.
See also ak.categories
, ak.to_categorical
, ak.from_categorical
.