Jak filtrować serię w pandy

s = pd.Series(test)
s = s[s != 1]
Courageous Cod