how to drop a no of row from share stock data in pandas code example Example: drop last row pandas df.drop(df.tail(n).index,inplace=True) # drop last n rows