2879. Display the First Three Rows

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2879

import pandas as pd


def selectFirstRows(employees: pd.DataFrame) -> pd.DataFrame:
    return employees.head(3)