From 2ee8f928af205da4cc6c26473913eb989d19dedc Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Sun, 10 Apr 2022 14:09:51 +0530 Subject: [PATCH] preprocess_timeseries converts numbers to float --- fincal/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fincal/utils.py b/fincal/utils.py index 2c48276..0de1dcd 100644 --- a/fincal/utils.py +++ b/fincal/utils.py @@ -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):