When applying multiple filters to a Python Pandas series, it’s often best to use multiple lines:
s = pd.Series([10, 15, 20, 25, 30])
s.loc[ (s > 20) & (s % 2 == 1) ]
This is easier to read, write, and maintain.