The Display The First Three Rows solution is below.
09 Jan 2023•Python
Display The First Three Rows
Python solution for Display The First Three Rows.
Solution files
Python•display-the-first-three-rows/solution.py
import pandas as pd
def selectFirstRows(employees: pd.DataFrame) -> pd.DataFrame:
return employees.head(3)