I have a DataFrame, where I want to apply filter in first column and then replace a number in 6th column with np.nan.
I also want to do these changes without taking the filter out of DataFrame. because I want the changes to be part of same DataFrame.
For example. if ID=1, I want to replace "f" with np.nan