HolidayTransform

class HolidayTransform(iso_code: str = 'RUS', out_column: Optional[str] = None)[source]

Bases: etna.transforms.base.IrreversibleTransform, etna.transforms.base.FutureMixin

HolidayTransform generates series that indicates holidays in given dataframe.

Create instance of HolidayTransform.

Parameters
  • iso_code (str) – internationally recognised codes, designated to country for which we want to find the holidays

  • out_column (Optional[str]) – name of added column. Use self.__repr__() if not given.

Inherited-members

Methods

fit(ts)

Fit the transform.

fit_transform(ts)

Fit and transform TSDataset.

get_regressors_info()

Return the list with regressors created by the transform.

inverse_transform(ts)

Inverse transform TSDataset.

load(path)

Load an object.

params_to_tune()

Get grid for tuning hyperparameters.

save(path)

Save the object.

set_params(**params)

Return new object instance with modified parameters.

to_dict()

Collect all information about etna object in dict.

transform(ts)

Transform TSDataset inplace.

get_regressors_info() List[str][source]

Return the list with regressors created by the transform. :returns: List with regressors created by the transform.

Return type

List[str]