Infer type
ipyvizzu.data.infer_type
This module provides the InferType
class, which stores data infer types.
ipyvizzu.data.infer_type.InferType
Bases: Enum
An enum class for storing data infer types.
Attributes:
Name | Type | Description |
---|---|---|
DIMENSION |
str
|
An enum key-value for storing dimension infer type. Dimensions are categorical series that can contain strings and numbers, but both will be treated as strings. |
MEASURE |
str
|
An enum key-value for storing measure infer type. Measures can only be numerical. |
Source code in src/ipyvizzu/data/infer_type.py
class InferType(Enum):
"""
An enum class for storing data infer types.
Attributes:
DIMENSION: An enum key-value for storing dimension infer type.
Dimensions are categorical series that can contain strings and numbers,
but both will be treated as strings.
MEASURE: An enum key-value for storing measure infer type.
Measures can only be numerical.
"""
DIMENSION: str = "dimension"
MEASURE: str = "measure"