我想在pandas里面对某列数据进行判断,然后笨方法使用apply+lambda,具体写法如下: df['time'].apply(lambda x: "day" if 6 <= x and x <= 18 else ...
確定! 回上一頁