connect.utils.common.is_categorical
- connect.utils.common.is_categorical(series, threshold=0.05)
Identifies whether a series is categorical or not
Logic: If there are relatively few unique values for a feature, the feature is likely categorical. The results are estimates and are not guaranteed to be correct.
- Parameters
series (pd.Series) – Series to evaluate
threshold (float) – The threshold (number of the unique values over the total number of values)
- Returns
Whether the series is categorical or not
- Return type
bool