【发布时间】:2021-01-04 06:06:09
【问题描述】:
我想根据其范围更改列中的值,我应该怎么做?
这是一个示例数据集
Id Number
0 2
1 2
2 2
3 2
4 23
5 6
6 16
7 10
8 15
9 8
10 6
11 9
12 1
Here is the range:
if number >=6 and <12 then 1
if number ==12, then 2
if number >=13 and <=17, then 3
if number >17 and <=22 then 4
else 5
我该怎么做?
【问题讨论】: