I know i can make a new df while dropping by criterias:
df = df[df.ID != 0]
But what if i want to use more criterias. I want to take out all rows that satisfy condition A and B. An example:
for v in range(len(drop)-1):
df = df[df.town != drop.at[v, 0] and df.state != drop.at[v, 1]]
drop is just a df with the names of towns and states, which should drop if in one row bot conditions are true.
I get this Error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Can anyone help me?