etna.datasets.generate_from_patterns_df#
- generate_from_patterns_df(periods: int, start_time: Timestamp | int | str | None, patterns: List[List[float]], freq: str | None = 'D', add_noise=False, sigma: float = 1, random_seed: int = 1) DataFrame [source]#
Create DataFrame from patterns.
- Parameters:
periods (int) – number of timestamps
patterns (List[List[float]]) – list of lists with patterns to be repeated
freq (str | None) – pandas frequency string for
pandas.date_range()
that is used to generate timestampadd_noise – if True we add noise to final samples
sigma (float) – scale of added noise
random_seed (int) – random seed
- Raises:
ValueError: – Incorrect type of
start_time
is used according tofreq
- Return type: