From 4add38f98e2c9780d1ef3baf4c9cf8f08078f7e8 Mon Sep 17 00:00:00 2001 From: Daiyi Yang Date: Sat, 7 Oct 2023 14:38:39 -0700 Subject: [PATCH] Fix the perf regression --- backend/app/insight/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/insight/api.py b/backend/app/insight/api.py index 330d4d9..1598943 100644 --- a/backend/app/insight/api.py +++ b/backend/app/insight/api.py @@ -214,7 +214,7 @@ def get_insight(self): try: logger.info('Reading file') - df = load_df_from_csv(f'/tmp/dsensei/{file_id}') \ + df = load_df_from_csv(f'/tmp/dsensei/{file_id}', date_column) \ .with_columns(pl.col(date_column).cast(pl.Utf8).str.slice(0, 10).str.to_date(strict=False).alias("date")) logger.info('File loaded')