I am attempting to drop rows from my dataframe that do meet a set of conditions. However it doesn't seem to be working.
Below are the two version which I have tried so far without success:
Attempt 1
df = df.drop(df[(df['Factorization'] != 0.5) & (df['Value'] != 30) & (df['Total'] == None)].index)
Attempt 2
df.drop(df[(df['Factorization'] != 0.5) & (df['Value'] != 20) & (df['Total'] == None)].index, inplace = True)
Please can someone point out where I am going wrong.