Repeat By¶
- class hazy_configurator.settings.repeat_by.RepeatBy¶
Bases:
HazyBaseModel
This class is used to specify when a column is repeated by another column, or to denote that a column is a key being used to repeat another column.
Examples
The snippets below apply to this example .
from hazy_configurator import IDType, RepeatBy, NumericalIdSettings IdType( col="Customer Reference", settings=NumericalIdSettings(length=6), as_str=True, repeat_by=RepeatBy(col="Customer ID"), )
{ "hazy_dtype": "id", "col": "Customer Reference" "settings": { "id_type": "numerical", "length": 6, "as_str": true }, "repeat_by": { "col": "Customer ID" } }
- Fields: