Pandas Iloc Stack Overflow

df.loc[:5]
df.iloc[:5]
Glamorous Gnu