how to select tha last row in a dataframe code example Example: location of last row dataframe rows = df.iloc[-2:]