当前位置:网站首页>Chapter 4 用户数据分析
Chapter 4 用户数据分析
2022-07-17 01:47:00 【桑之未落0208】
数据预处理
- 数据的加载

- 查看数据类型以及有无缺失值

- 将order_dt 整型转换为时间类型

- 在源数据中添加一列表示月份:astype(‘datetime64[M]’)

按月数据分析
- 每月花费的总金额,绘制曲线图表示


- 所有用户每月产品购买量

- 所有用户每月消费的总次数

- 统计每月的消费人数

- 所有用户每月产品购买量
用户个体消费数据分析
用户消费总金额和消费总次数的统计描述

用户消费金额和消费产品数量的散点图

各个用户消费总金额的直方分布图(消费金额在1000之内的分布)

各个用户消费的总数量的直方分布图(消费商品的数量在100次之内的分布)

用户消费行为分析
用户第一次消费的月份分布和人数统计,绘制线形图

用户最后一次消费的时间分布和人数统计,绘制线形图

新老客户的占比(消费一次的为老用户,消费多次为老用户)
分析出每一个用户的第一个消费和最后一次消费的时间,ps:agg([‘func1’,‘func2’])对分组后的结果进行指定聚合

分析得出每个用户的总购买量、总消费金额以及最近一次消费时间的表格rfm

看图



用户生命周期的分析






边栏推荐
- By voting for the destruction of STI by Dao, seektiger is truly community driven
- Subline快捷操作
- Bias and variance
- Binary search (leetcode704. very simple and necessary)
- Vs code problem: launch:program '... \ vscode\launch. exe‘ dose not exist
- Frequency school and Bayes school
- MySQL master-slave setup
- The fifth day of the third question of Luogu daily
- Oracle queries the host name and the corresponding IP address
- Wechat applet
猜你喜欢

Browser cannot open tensorboard

Simple usage and interface introduction of labelme

SwiftUI 考试题库项目之支持题库和考试题库数量(教程含源码)

Wdog and power mode of fs32k148 commissioning
![Theoretical basis and code implementation of dueling dqn [pytoch + pendulum-v0]](/img/f6/cbfe32991449975fe51f2e2c0c1d47.png)
Theoretical basis and code implementation of dueling dqn [pytoch + pendulum-v0]

The installation software prompts that the program input point adddlldirectory cannot be located in the dynamic link library kernel32 DLL (download address at the end of the text)

Basic IDL content of note 1: common data types_ Create array_ Type conversion_ Print output_ Basic operation_ Relational operation

web语义化(强调标签-em-斜体)(重点强调标签-strong-粗体)(自定义列表:dl、dt、dd)

Powertor500t reports an error 0x01806803

Properties of Gaussian distribution (including code)
随机推荐
线程的私有存储空间
Shell script receives and returns parameters
Analysis and processing of male and female voice signals based on MATLAB
Dive Into Deep Learning——2.2数据预处理
通过Dao投票STI的销毁,SeekTiger真正做到由社区驱动
[MySQL] data query operation (select statement)
洛谷每日三题之第四天
Bias and variance
central limit theorem
Wdog and power mode of fs32k148 commissioning
Go语言中的Iota关键字怎么使用
如何将Excel中的数据粘贴到cxGrid中
The fourth day of the third question of daily Luogu
[2016 CCPC 杭州J] Just a Math Problem (莫比乌斯反演)
374. Guess the size of numbers (must be able to get started)
Leetcode: dynamic programming [basic problem solving]
oracle 关闭回收站
10. Redis interview FAQ
鼠标滑动两张图片前后对比js插件
Win10 onedrive failure reinstallation