怎么将3-5年改为4,10年以上改成10,不限改成0,求具体代码解答,用的是jupyter
df.apply(lambda x: x.replace('3-5', '4').replace('10xx', '10').replace('xxx', '0'))