0

I'm using a pandas dataframe which looks something like this:

enter image description here

and I need to change all the values of -999 to Nan for processing. The docs, and the following articles,

here

here

describe how to change NaNs 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?

Jim421616
  • 1,434
  • 3
  • 22
  • 47

0 Answers0