diff --git a/insights/api/__init__.py b/insights/api/__init__.py index ef78532c..3f231111 100644 --- a/insights/api/__init__.py +++ b/insights/api/__init__.py @@ -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,