remove last column and last row in pandas dataframe code example Example: drop last row pandas df.drop(df.tail(n).index,inplace=True) # drop last n rows