diff --git a/api/api_v1/endpoints/xquery.py b/api/api_v1/endpoints/xquery.py index 5b8fe36..5d48d75 100644 --- a/api/api_v1/endpoints/xquery.py +++ b/api/api_v1/endpoints/xquery.py @@ -49,7 +49,7 @@ async def ltv_model_sql( quota = res['quota'] df = await ckdb.query_dataframe(sql) df.fillna(0, inplace=True) - df.rename(columns={'date': '注册日期', 'cnt1': '角色数'}, inplace=True) + df.rename(columns={'date': '注册日期'}, inplace=True) if quota == '#account_id': df.rename(columns={'cnt1': '角色数'}, inplace=True) elif quota in ('#distinct_id',):