create_features_all_unique_values#
- tangles.convenience.create_features_all_unique_values(single_col_data: Series | ndarray, unique_values: list | ndarray | None = None) Tuple[ndarray, ndarray] #
A simple feature factory function for variables that take a (small) number of unique values.
Parameters#
- single_col_datapd.Series or np.ndarray
The featured data.
- unique_valueslist or np.ndarray
Unique values in single_col_data.
Returns#
- tuple[np.ndarray, np.ndarray]
The features in the first entry and the corresponding metadata in the second entry.