diff --git a/lumen/serializers.py b/lumen/serializers.py index 2bb03d71..87c2f402 100644 --- a/lumen/serializers.py +++ b/lumen/serializers.py @@ -46,9 +46,9 @@ def serialize(self, data) -> dict[str, any]: } def deserialize(self, data) -> dict[str, any]: - data = StringIO(data['data']) + data_buf = StringIO(data['data']) df = pd.read_csv( - data, parse_dates=data['date_cols'] + data_buf, parse_dates=data['date_cols'] ).astype(data['dtypes']) index_cols = data['index'] if index_cols: