Filter An Array With Multiple Conditions In Pandas