Skip to content

Ariefah Shalihah

  • Home
  • About

How to get the last n rows from a Pandas DataFrame in Python

Use pandas.DataFrame.iloc()

Use pandas.DataFrame.tail()



how-to-get-the-last-n-rows-from-a-pandas-dataframe-in-python

Categories PYTHON
Post navigation
How to get the last element in a list in Python
How to get the logical xor of two variables in Python

Recent Posts

  • How asynchronously call methods in Python
  • How get a function name as a string in Python
  • How pretty print a JSON file in Python
ariefahshalihah