preprocess_timeseries converts numbers to float

This commit is contained in:
Gourav Kumar 2022-04-10 14:09:51 +05:30
parent d4bbaf7903
commit 2ee8f928af

View File

@ -101,7 +101,7 @@ def _preprocess_timeseries(
raise TypeError("Could not parse the data")
if isinstance(data[0], Sequence):
return sorted([(_parse_date(i, date_format), j) for i, j in data])
return sorted([(_parse_date(i, date_format), float(j)) for i, j in data])
# If first element is not a dictionary or tuple, it cannot be parsed
if not isinstance(data[0], Mapping):