Coverage for src/ipyvizzu/data/infer_type.py: 100%
4 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 10:12 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 10:12 +0000
1"""
2This module provides the `InferType` class, which stores data infer types.
3"""
5from enum import Enum
8class InferType(Enum):
9 """
10 An enum class for storing data infer types.
12 Attributes:
13 DIMENSION: An enum key-value for storing dimension infer type.
14 Dimensions are categorical series that can contain strings and numbers,
15 but both will be treated as strings.
17 MEASURE: An enum key-value for storing measure infer type.
18 Measures can only be numerical.
19 """
21 DIMENSION: str = "dimension"
22 MEASURE: str = "measure"