pandas select first n rows of a get first n rows of pandas dataframe remove last n rows from data frame in r select first n rows of data frame in r n rows from pandas dataframe in python get first row of pandas dataframe pandas drop first n rows from dataframe pandas dataframe python tutorial extract first n rows of data frame in r n rows in a pyspark dataframe row selection with dataframes data create data frame with n rows m select top n rows in pyspark dataframe