using list comprehension to filter out age group pandas

40

[ pers for pers in world if all([f(pers) for f in predicates]) ]
l = [person for person in world if re.search(person.name, '.*Smith') and person.gender = 'm' and person.age < 20]

Comments

Submit
0 Comments