How to get last row of Pandas DataFrame

Use .iloc[-1] to get the last row (all columns) of a pandas DataFrame, for example:

example.py
my_dataframe.iloc[-1]

 


Check out similar posts by category: Pandas, Python