Skip to content

Commit

Permalink
Fix serialization (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Jan 3, 2025
1 parent 5d347d5 commit 608b2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lumen/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 608b2b3

Please sign in to comment.