etna.datasets.generate_from_patterns_df#
- generate_from_patterns_df(periods: int, start_time: int | str | ~pandas._libs.tslibs.timestamps.Timestamp | None, patterns: ~typing.List[~typing.List[float]], freq: ~pandas._libs.tslibs.offsets.DateOffset | str | None = <Day>, 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 (DateOffset | str | None) –
frequency of timestamps, possible values:
pandas.DateOffset
object for datetime timestamppandas offset aliases for datetime timestamp
None for integer timestamp
add_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: