Pandas – Drop last n rows of a DataFrame
In this tutorial, we will look at how to drop the last n rows of a pandas dataframe. How to drop the last n rows of a dataframe? There are a number of ways to remove the last n rows of a dataframe. For example, you can slice the dataframe using .iloc or you can use the …