如何將這兩列組合在一起?即,我想刪除 NAN 并將第 1 列(一系列)移至第 0 列(數(shù)據(jù)幀) 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貢獻(xiàn)1794條經(jīng)驗 獲得超8個贊
如何將這兩列組合在一起?即,我想刪除 NAN 并將第 1 列(一系列)移至第 0 列(數(shù)據(jù)幀)
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
提交
取消