I'm using a pandas dataframe which looks something like this:
and I need to change all the values of -999
to Nan
for processing. The docs, and the following articles,
describe how to change NaN
s to values, but I need to go the other way. What method can I use to achieve this?
I've also tried sources.replace(-999, np.nan)
but this didn't seem to have an effect. What am I doing wrong?