Using multiple indicies for arrays in python,test_rec[(test_rec.age == 1) & (test_rec.sex == 1)]