You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the aeon api for reader and load, if the returned pd.DataFrame is empty (due to no data found in the specified time period), the empty DataFrame has missing columns.
The specified time period has no data, so it is expected for an empty DataFrame being returned. However, this empty df should have the same columns as specified in the reader (['threshold', 'offset', 'rate']).
However, the returned empty df only has columns: ['offset', 'rate']
Empty DataFrame
Columns: [offset, rate]
Index: []
The text was updated successfully, but these errors were encountered:
jkbhagatio
changed the title
Dataframe with missing columns returned when api.load() returns empty
Dataframe with missing columns returned when load() returns empty
Feb 6, 2024
@jkbhagatio The issue seems to be at the Csv reader. Particularly when the csv file does exist, but the file itself is empty (not sure why, corrupted?).
Also worth discussing in regards to this issue is whether or not we should find a way to ensure empty files don't make their way into the dataset, on the acquisition side @glopesdev
Using the aeon api for
reader
andload
, if the returned pd.DataFrame is empty (due to no data found in the specified time period), the empty DataFrame has missing columns.To reproduce the bug
The specified time period has no data, so it is expected for an empty DataFrame being returned. However, this empty df should have the same columns as specified in the reader (
['threshold', 'offset', 'rate']
).However, the returned empty df only has columns:
['offset', 'rate']
The text was updated successfully, but these errors were encountered: