Save range binning as dictionary and apply to another data frame python pandas

前端 未结 0 1833
情歌与酒
情歌与酒 2021-01-30 12:52

I want to do binning to all column in my dataframe and apply the range to dataframe, so i do code like this:

for col in df.columns:
    ser, bins = pd.qcut(df[col         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题