ak.is_categorical#
Defined in awkward.operations.ak_is_categorical on line 12.
- ak.is_categorical(array)#
- Parameters:
array – Array-like data (anything
ak.to_layoutrecognizes).
If the
arrayis categorical (containsak.contents.IndexedArrayorak.contents.IndexedOptionArraylabeled with parameter"__array__" = "categorical"), then this function returns True; otherwise, it returns False.See also
ak.categories,ak.str.to_categorical,ak.from_categorical.