pandas cut函数
将数据进行离散化、将连续变量进行分段汇总
pd.cut(x,bins,right=True,labels=None,retbins=False,precision=3,include_lowest=False)
x:一维数组
bins:整数--将x划分为多少个等距的区间,序列--将x划分在指定序列中,若不在该序列中,则是Nan
right:是否包含右端点
labels:是否用标记来代替返回的bins
precision:精度
include_lowest:是否包含左端点