this entry collects the solution files i have for display the first three rows. i may expand it with a fuller write-up later, but the implementation files are already here.
available solution files
- Python
display-the-first-three-rows/solution.py
notes and solution files for display the first three rows.
this entry collects the solution files i have for display the first three rows. i may expand it with a fuller write-up later, but the implementation files are already here.
display-the-first-three-rows/solution.pyimport pandas as pd
def selectFirstRows(employees: pd.DataFrame) -> pd.DataFrame:
return employees.head(class="syntax-number">3)