博雅数据机器学习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)
2024-03-19 22:39:04
博雅数据机器学习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)