Cut() error - 'breaks' are not unique

后端 未结 4 1195
甜味超标
甜味超标 2020-11-29 04:12

I have following dataframe:

 a         
    ID   a.1    b.1     a.2   b.2
1    1  40.00   100.00  NA    88.89
2    2  100.00  100.00  100   100.00
3    3  5         


        
4条回答
  •  孤街浪徒
    2020-11-29 04:27

    Instead of cut, you can use .bincode, that accepts a non unique vector of breaks.

提交回复
热议问题