g2801_2900.s2879_display_the_first_three_rows.solution.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java21 Show documentation
Show all versions of leetcode-in-java21 Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
# #Easy #2023_12_23_Time_406_ms_(96.44%)_Space_60.8_MB_(5.67%)
import pandas as pd
def selectFirstRows(zs: pd.DataFrame) -> pd.DataFrame:
return zs.head(3)