我有一個大的數據幀替換它們,當我處理它,我收到此錯誤查找包含 N值與0
ValueError: could not convert string to float: \N
爲了擺脫這種錯誤我需要更換的電池\ N個數值爲0。我想這樣的代碼:
set1[set1 == '\N'] = 0
#This also did not work --> set1[set1.ix[:,:] == '\N'] = 0
但是,後來我收到此錯誤:
TypeError: Could not compare ['\N'] with block values
任何想法?
感謝您的回答! – renakre