I have below DF with null values in some columns.
Now I need to update/replace those 'null' values with 'NA'
+-------+------+-----+------+----+ |Product|Canada|China|Mexico| USA| +-------+------+-----+------+----+ | Orange| null| 4000| null|4000| | Beans| null| 1500| 2000|1600| | Banana| 2000| 400| null|1000| |Carrots| 2000| 1200| null|1500| +-------+------+-----+------+----+ I found the method 'fillna' to replace the null value
however I need to update/replace all column having null values
So something like this or better way
replaced = df.fillna({str(col):'NA', col for col in df.columns}) Appreciate any help to get the right approach
Thanks