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)