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']