Drop The Last Row Of A Dataframe

[Solved] Drop The Last Row Of A Dataframe | Python - Code Explorer | yomemimo.com
Question : drop last row pandas

Answered by : white-faced-tree-rat

df.drop(df.tail(n).index,inplace=True) # drop last n rows

Source : https://stackoverflow.com/questions/26921651/how-to-delete-the-last-row-of-data-of-a-pandas-dataframe | Last Update : Tue, 30 Jun 20

Question : Drop last n rows in Pandas Dataframe

Answered by : sumaia-parveen-shupti

df.drop(df.tail(n).index,inplace=True)

Source : | Last Update : Wed, 24 Aug 22

Answers related to drop the last row of a dataframe

Code Explorer Popular Question For Python