From ad00470810858fc071b53c53f1eadfe52326e728 Mon Sep 17 00:00:00 2001 From: wuaho Date: Fri, 30 Jul 2021 16:29:49 +0800 Subject: [PATCH] =?UTF-8?q?ltv=20=E5=A4=9A=E7=BB=B4=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/xquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',):