I have a negative value that affects my graph. I need to know how to convert for example, -66.23 into a NaN value. Thank you!
To replace all negative values use the pandas built-in Fancy indexing:
Fancy indexing
df[df < 0] = float('NaN')