how to delete a row by index in pandas code example
Example 1: delete a row in pandas dataframe
df.drop(df.index[2])
Example 2: pandas df remove index
df = df.reset_index(drop=True)
df.drop(df.index[2])
df = df.reset_index(drop=True)