I have a .csv file which I can read using pd.read_csv().
In this file i have SomeBoolean column that I need to update with new logic.
However when I write the file again using pd.to_csv() some other column values are changed, e.g. the sometimesNaN column has some empty values which are interpreted as NaN while reading the csv, but then they are also written as NaN instead of an empty value.
Is there a way in which I can update the SomeBoolean column without accidentally affecting the others such as the sometimesNaN column?
Index Date SomeBoolean Values sometimesNaN
0 2021-05-18 False 216.351155 NaN
1 2021-05-18 False 876.222176 NaN
2 2021-05-18 False 767.214479 NaN