File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 33
33
- [ TST] Compat with macos and window, to fix ` FailedHealthCheck ` Issue #1181 @Zeroto521
34
34
- [ INF] Merge two docs CIs (` docs-preview.yml ` and ` docs.yml ` ) to one. And add ` documentation ` pytest mark. PR #1183 @Zeroto521
35
35
- [ INF] Merge ` codecov.yml ` (only works for the dev branch pushing event) into ` tests.yml ` (only works for PR event). PR #1185 @Zeroto521
36
+ - [ TST] Fix failure for test/timeseries/test_fill_missing_timestamp. Issue #1184 @samukweku
36
37
- [ BUG] Import ` DataDescription ` to fix: ` AttributeError: 'DataFrame' object has no attribute 'data_description' ` . PR #1191 @Zeroto521
37
38
38
39
## [ v0.23.1] - 2022-05-03
Original file line number Diff line number Diff line change @@ -26,7 +26,16 @@ def test_fill_missing_timestamps(timeseries_dataframe):
26
26
df1 = timeseries_dataframe .drop (timeseries_dataframe .index [random_number ])
27
27
28
28
# Fill missing timestamps
29
- result = fill_missing_timestamps (df1 , frequency = "1H" )
29
+ # fix for GH#1184 is to use the start and end from
30
+ # timeseries_dataframe
31
+ # imagine that the last row of df1 is removed, or the first entry
32
+ # the length check in the assert line will fail
33
+ result = fill_missing_timestamps (
34
+ df1 ,
35
+ frequency = "1H" ,
36
+ first_time_stamp = timeseries_dataframe .index .min (),
37
+ last_time_stamp = timeseries_dataframe .index .max (),
38
+ )
30
39
31
40
# Testing if the missing timestamp has been filled
32
41
assert len (result ) == len (timeseries_dataframe )
You can’t perform that action at this time.
0 commit comments