以网购行为数据为数据集,通过网购行业指标:日PV、日UV、付费率、复购率、漏斗流失等,最后分析用户价值情况
数据集为一个月的用户行为数据,数据集链接:https://tianchi.aliyun.com/dataset/dataDetail?dataId=46&userId=1
列字段分别是:用户id:user_id;商品id:item_id;用户行为:behavior_type(1:点击,2:收藏,3:加购物车,4:支付);地理位置:user_geohash;商品种类:item_category;时间:time
一、导入工具包与源数据
import pandas as pd
import numpy as py
%matplotlib inline # 功能是可以内嵌绘图,并且可以省略掉plt.show()这一步
import matplotlib.pyplot a