コード例 #1
0
 def test_with_resample_true(
     self, series: pd.Series, start: datetime, freq: pd.Timedelta, output_name: str,
 ):
     time_series_preparation = TimeSeriesPreparation(
         start=start,
         freq=freq,
         resample_if_not_equispaced=True,
         output_name=output_name,
     )
     with pytest.raises(NotImplementedError):
         time_series_preparation._to_equispaced_time_series(series)
コード例 #2
0
 def test_with_resample_false(
     self, series: pd.Series, start: datetime, freq: pd.Timedelta, output_name: str,
 ):
     time_series_preparation = TimeSeriesPreparation(
         start=start,
         freq=freq,
         resample_if_not_equispaced=False,
         output_name=output_name,
     )
     computed_series = time_series_preparation._to_equispaced_time_series(series)
     assert_series_equal(computed_series, series)