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"),
)
Fields:
field col: str [Required]

The column that the target column is repeated by.