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