preprocess_timeseries converts numbers to float
This commit is contained in:
parent
d4bbaf7903
commit
2ee8f928af
@ -101,7 +101,7 @@ def _preprocess_timeseries(
|
|||||||
raise TypeError("Could not parse the data")
|
raise TypeError("Could not parse the data")
|
||||||
|
|
||||||
if isinstance(data[0], Sequence):
|
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 first element is not a dictionary or tuple, it cannot be parsed
|
||||||
if not isinstance(data[0], Mapping):
|
if not isinstance(data[0], Mapping):
|
||||||
|
Loading…
Reference in New Issue
Block a user