DataCategorical.from_options
- classmethod DataCategorical.from_options(name: str, option_list: list, dim: int = 1, dtype: str | None = None, flag_split_perdim: bool = False) DataCategorical [source]
Class method to for initialization from list of integers
- Parameters:
name (str) – Name of the data object.
option_list (list) – List of integers to be used as domain.
dim (int, optional) – Dimensionality of the data object, or different columns to perform the split on.
dtype (str, optional) – The dtype of the numpy are of the expected data matrix.
flag_split_perdim (bool, optional) – If True, object is split across dimensions in a DataBlock.
- Returns:
DataCategorical – A DataCategorical object.