generate_from_patterns_df

generate_from_patterns_df(periods: int, start_time: str, patterns: List[List[float]], freq: str = '1D', add_noise=False, sigma: float = 1, random_seed: int = 1) pandas.core.frame.DataFrame[source]

Create DataFrame from patterns.

Parameters
  • periods (int) – number of timestamps

  • start_time (str) – start timestamp

  • patterns (List[List[float]]) – list of lists with patterns to be repeated

  • freq (str) – pandas frequency string for pandas.date_range() that is used to generate timestamp

  • add_noise – if True we add noise to final samples

  • sigma (float) – scale of added noise

  • random_seed (int) – random seed

Return type

pandas.core.frame.DataFrame