留存title
This commit is contained in:
parent
094dab1a0b
commit
024c7892c6
@ -343,7 +343,7 @@ async def retention_model(request: Request,
|
|||||||
tmp['p_outflow'] = (pd.Series(avgo) * 100 / tmp['d0']).round(2).tolist()
|
tmp['p_outflow'] = (pd.Series(avgo) * 100 / tmp['d0']).round(2).tolist()
|
||||||
tmp['n_outflow'] = pd.Series(avgo).values.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)
|
retention_length = len(retention_n)
|
||||||
|
Loading…
Reference in New Issue
Block a user