Isaac Emmanuel
09 Jan 2023Python

Display The First Three Rows

Python solution for Display The First Three Rows.

The Display The First Three Rows solution is below.

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)