oder Bedingung in Pandas
df1 = df[(df.a != -1) & (df.b != -1)]
Thoughtless Tapir
df1 = df[(df.a != -1) & (df.b != -1)]
df2 = df[(df.a != -1) | (df.b != -1)]