博雅数据机器学习03
特征离散化
import pandas as pd
data = pd.read_csv('user_review.csv')
# 请在下方作答 #
import pandas as pd
## 返回bins
bins = pd.qcut(data['Member years'], 4)
## 统计取值信息
pd.value_counts(bins)
标签:03,机器,##,博雅,pd,import,csv,bins
来源: https://www.cnblogs.com/xueqiuxiang/p/14466953.html