I have a datafram df, and i want to get the rows that a column value equals 1 b 0 c 0 and d 0
df_result = df[df.a == 1 and df.b == 0 and df.c == 0 and df.d == 0]
It says ; The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().