[ERROR] Pandas Changing the format of NaN values when saving to CSV

<에러해결>|2021. 1. 13. 22:30
반응형

https://stackoverflow.com/questions/50890989/pandas-changing-the-format-of-nan-values-when-saving-to-csv

 

Pandas Changing the format of NaN values when saving to CSV

I am working with a df and using numpy to transform data - including setting blanks (or '') to NaN. But when I write the df to csv - the output contains the string 'nan' as oppose to being NULL. I...

stackoverflow.com

이거 참조

 

 

json파일에서 결측치를 'NULL'값으로 채워줬는데 csv로 변환하면 자꾸 NAN 결측치가 되길래 

NULL값이아닌 nul로 바꿔 봤더니 아주 잘된다 

none,nan,null단어는 피해서 지정해주는것이 답이였다.

 

 

반응형

댓글()