Python: ValueError: The truth value of a Series is ambiguous. : I'm not sure why I keep getting this error.  I've check the path for student and grade and they print out fine.  I'm trying to drop any values of current students who have grades listed as fail.  Any suggestions on how to improve this code?


    df.drop(df.query(student == 'current' and grade == 'fail').index, inplace=True)

This is the full error I get:

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Python 3