From 024c7892c6fc202313037b9235b49090fa61c6ad Mon Sep 17 00:00:00 2001 From: wuaho Date: Thu, 25 Nov 2021 11:54:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=99=E5=AD=98title?= 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, 1 insertion(+), 1 deletion(-) diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index 47ffc30..3d526c4 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -343,7 +343,7 @@ async def retention_model(request: Request, tmp['p_outflow'] = (pd.Series(avgo) * 100 / tmp['d0']).round(2).tolist() tmp['n_outflow'] = pd.Series(avgo).values.tolist() - title = ['日期', '用户数', '次留', *[f'{i}留' for i in retention_n[1:]]] + title = ['日期', '用户数', '次留', *[f'{i+1}留' for i in retention_n[1:]]] # 未到达的日期需要补齐- retention_length = len(retention_n)