drop specifc rows in panda code example
Example 1: drop last row pandas
df.drop(df.tail(n).index,inplace=True) # drop last n rows
Example 2: remove all odd row pandas
#to skip every other row
df.iloc[::2]
df.drop(df.tail(n).index,inplace=True) # drop last n rows
#to skip every other row
df.iloc[::2]