From 64c4a5273d7894d1654f0e7961c2be2b05d450d5 Mon Sep 17 00:00:00 2001 From: wuaho Date: Wed, 29 Sep 2021 15:29:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=B8=83=E6=95=B0=E5=80=BC=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/query.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index 4fc1ab5..23fe14c 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -708,6 +708,8 @@ async def scatter_model( res = analysis.scatter_model_sql() sql = res['sql'] df = await ckdb.query_dataframe(sql) + df.fillna(0, inplace=True) + df['values'] = df['values'].astype(int) interval_type = res['interval_type'] analysis = res['analysis'] groupby = res['groupby']