how to take the first row of a pandas dataframe code example Example: pandas return first row df_test.iloc[0] or df_test['someColumnName'].iloc[0]