select_observations

select_observations(df: pandas.core.frame.DataFrame, timestamps: pandas.core.series.Series, freq: str, start: Optional[Union[str, pandas._libs.tslibs.timestamps.Timestamp]] = None, end: Optional[Union[str, pandas._libs.tslibs.timestamps.Timestamp]] = None, periods: Optional[int] = None) pandas.core.frame.DataFrame[source]

Select observations from dataframe with known timeline.

Parameters
  • df (pandas.core.frame.DataFrame) – dataframe with known timeline

  • timestamps (pandas.core.series.Series) – series of timestamps to select

  • freq (str) – pandas frequency string

  • start (Optional[Union[str, pandas._libs.tslibs.timestamps.Timestamp]]) – start of the timeline

  • end (Optional[Union[str, pandas._libs.tslibs.timestamps.Timestamp]]) – end of the timeline

  • periods (Optional[int]) – number of periods in the timeline

Returns

dataframe with selected observations

Return type

pandas.core.frame.DataFrame