熊猫根据一栏的值确定最小和最大

时间:2020-04-06 22:55:33

标签: pandas cut

我的数据框

col1   col2   col3   cumProb    

12      0      4      0.4    
12      1      2      0.6
..                     ..
i                       1

我要分别创建Min Max列

col1   col2   col3   cumProb   Min    Max

12      0      4      0.4      0      0.4(0.4 not inclusive)
12      1      2      0.7      0.4    0.7(0.4 to 0.7 not inclusive)       
..                     ..       ..
i                       1      0.9    1.0 (0.9 to 1.0 inclusive)

0 个答案:

没有答案