我有一个数据框,有3列“from”,“to”,“country”,例如:
from to country
1 105 abc
500 1000 def
我想通过将from和to值拆分为size=10来创建dataframe。所以我应该把数据帧作为
from to country
1 10 abc
11 20 abc
21 30 abc
31 40 abc
...
91 105 abc ( the left out values go in last bucket for that range)
500 510 def
等等。。。你知道吗
相关问题 更多 >
编程相关推荐