Premium problem115. Missing Email or Under Eighteen

Easy Locked

customers has columns customer_id, email and age.

Return the rows needing review: those whose email is missing or whose age is under 18. Keep the original columns and index order.

or and and do not work element-wise on Series; the bitwise operators do, and they bind tighter than comparison so each side needs its own parentheses.

Input

   customer_id    email  age
0            1  a@x.com   30
1            2     None   25
2            3  c@x.com   16
3            4  d@x.com   45

Output

   customer_id    email  age
1            2     None   25
2            3  c@x.com   16

Premium problem

This one's part of Premium. Unlock the full Pandas track plus every other premium problem on the site.

Implement solve(...)