how to get value in last row in pandas column code example Example: location of last row dataframe rows = df.iloc[-2:]