Dataset.is_categorical

Dataset.is_categorical(col_name: Hashable) bool[source]

Check if uniques are few enough to count as categorical.

Parameters
col_nameHashable

The name of the column in the dataframe

Returns
bool

If is categorical according to input numbers