I am working with Pandas (python) on a dataset containing some fMRI results.
I am trying to drop rows when the value of a specific column is lower than a threshold I set. The thing is, I would also like to keep NAN values.
df = df[(dfr['in_mm3'] > 270) or (np.isnan(df['in_mm3']) == True)]
Obviously this doesn't work, but it is for you to better understand what I'm trying to achieve.
Any help would be appreciated.
Thanks.