Adult Names
people has columns name (text) and age (int). Return a list of the names of everyone who is at least 18, in the order they appear.
Example 1
people {"name":["Ana","Ben","Cy"],"age":[17,18,40]}
returns ["Ben","Cy"]
Ben (18) and Cy (40) are adults.
Constraints
- The result may be an empty list
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Average AgeBeginner
- Biggest Daily JumpBeginner
- Cap the SalariesBeginner
- Carry the Last ValueBeginner
- Colour TallyBeginner
- Column StatisticsBeginner
- Column TotalBeginner
- Correlation of ColumnsBeginner