Skip to content

Commit

Permalink
fix: fill NaN and NaT fields before sending them to the frontend (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chdecultot authored Dec 13, 2024
1 parent 0d34cd2 commit cd84c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_csv_data(filename: str):
count = table.count().execute().item()

columns = get_columns_from_schema(table.schema())
rows = table.head(50).execute().to_dict(orient="records")
rows = table.head(50).execute().fillna("").to_dict(orient="records")

return {
"tablename": file_name,
Expand Down

0 comments on commit cd84c39

Please sign in to comment.