is_categorical#
- is_categorical(column: Series, max_categorical_ratio: float = 0.01, max_categories: int = 30, max_float_categories: int = 5) bool [source]#
Check if uniques are few enough to count as categorical.
- Parameters
- columnpd.Series
The name of the column in the dataframe
- max_categorical_ratiofloat , default: 0.01
- max_categoriesint , default: 30
- max_float_categoriesint , default: 5
- Returns
- bool
True if is categorical according to input numbers