一、概念介绍
漏斗图(Funnel),也称为倒三角图,借助echarts的解释如下:
Funnel diagram is suitable for one-way analysis of single process with standardized business process, long cycle
and multiple links.Through comparison of business data of each link in the funnel,the link where the potential problems
can be found intuitively,and then decisions can be made.
在现实应用中,我们常利用此类图形帮助进行业务流程比较规范、周期长、环节多的单流程可视化分析。
场景列举:
用户生命周期模型 —— AARRR(本案例),用于分析用户增长、协助用户运营
电商漏斗模型 —— 如AIPL(Awareness → Interest → Purchase → Loyalty)
用户消费行为模型 —— AIDMA(Attention → Interest → Desire → Memory → Action)
AISAS(Attention → Interest → Search → Action → Share)
ISMAS(Interest → Search → Mouth/口碑 → Action → Share)
SICAS(Sense → interest&interactive → Connect&Communicate → Action → Share)
......
在这样一条从属关系链下,漏斗图反映出来的各环节业务数据缩减比率可以直观说明问题所在的环节,帮助分析者或者管理者做出决策。
二、数据准备
由于是模拟数据作图,这里就按照AARRR模型五个环节随机生成数字如下:
环节 | 人数 | 单一环节转化率 | 总体转化率 |
---|---|---|---|
Acquisition | 156280 | 100.00% | 100.00% |
Activation | 93346 | 59.73% | 59.73% |
Retention | 47047 | 50.40% | 30.10% |
Revenue | 10463 | 22.24% | 6.70% |
Referral | 7899 | 75.49% | 5.05% |
三、图形绘制
import pandas as pd
data = pd.read_excel('漏斗图.xlsx', 'Sheet1')
attrs = data['环节'].tolist()
trans