this entry collects the solution files i have for select data. i may expand it with a fuller write-up later, but the implementation files are already here.
available solution files
- Python
select-data/solution.py
notes and solution files for select data.
this entry collects the solution files i have for select data. i may expand it with a fuller write-up later, but the implementation files are already here.
select-data/solution.pyimport pandas as pd
def selectData(students: pd.DataFrame) -> pd.DataFrame:
student_101 = students[students[class="syntax-string">'student_id'] == class="syntax-number">101]
result = student_101[[class="syntax-string">'name', class="syntax-string">'age']]
return result