df2 = df.head(N) # this should select N rows from top and copy to new df df3 = df.tail(N) # this should select N rows from bottom and copy to new df
df.iloc[:n]
DataFrame.head( n = 5)
df.head(n)