如何将这两列组合在一起?即,我想删除 NAN 并将第 1 列(一系列)移至第 0 列(数据帧) 0 1A *aasvfasfdb NaN1 NaN 456,0.0021212 NaN 567,0.0052983 NaN 345,0.0061924 NaN 345,0.004532我尝试了 drop 方法的不同条目,drop(columns=0, inplace=False)但它们要么替换一列,要么替换另一列。
1 回答
幕布斯7119047
TA贡献1794条经验 获得超8个赞
如何将这两列组合在一起?即,我想删除 NAN 并将第 1 列(一系列)移至第 0 列(数据帧)
0 1
A *aasvfasfdb NaN
1 NaN 456,0.002121
2 NaN 567,0.005298
3 NaN 345,0.006192
4 NaN 345,0.004532
我尝试了 drop 方法的不同条目,drop(columns=0, inplace=False)但它们要么替换一列,要么替换另一列。
添加回答
举报
0/150
提交
取消