1df2 = df.head(N)
2# this should select N rows from top and copy to new df
3df3 = df.tail(N)
4# this should select N rows from bottom and copy to new df
5
1# Returns the first n rows
2
3df.head()
4# Row(age=2, name=u'Alicz')
5df.head(1)
6# [Row(age=2, name=u'Alice')]