dataframe 判斷是否爲空的解決方式,即判斷是否爲NAN

利用pd.read_table 讀出來的數據,若是存在空值的,補充爲-1。函數 若x是dataframe中emp_length列裏面的其中一個值,判斷其是否爲空用什麼?blog x is None?   沒起做用table len(x)==0?   提示float 沒有lenclass np.isnull(x)?  提示不可用float 到底用哪一個? np.nan !!im def careey
相關文章
相關標籤/搜索