The code seems to run without issue but when I run .describe the values are still there. What am I doing wrong? I am trying to delete -999 values in my dataframe for all the columns with :
cols=['#objid','u','g','r','i','z','redshift']
for col in cols:
data_mag_clean=data_mag.drop(data_mag[data_mag[col] < 0].index)
as I said the code runs without errors but nothing gets deleted.