Jan-24-2019, 09:14 PM
In that case, you want to change the operator to "or":
df.query('col1 == "Feb" or col1 == "Mar"')Any individual value in col1 cannot equal "Feb" and "Mar" simultaneously so "and" won't work.