I was trying to do something like this: qc_data
is my dataframe (pandas ), PH
is one of the values in column NEW_QC_TEST
. How do I do this correctly?
qc_data[qc_data['NEW_QC_TEST'] == "PH"]["VALUE"].fillna(6.9, inplace=True)
I did try the following but is even worse I think
#qc_data[qc_data['NEW_QC_TEST'] == "PH"].isnull().sum()
#qc_data[qc_data['NEW_QC_TEST'] == "PH"].fillna(6.9, inplace=True)