take last row of data range python code example Example: location of last row dataframe rows = df.iloc[-2:]