GPFZC

pandas分段函数

2020/05/28
730
0
data1["cut"] = pd.cut(data1["key1"],bins=[10,15,20,30],labels=["下","中","上"],include_lowest=False)