import pandas as pd
# Reset index
df = df.reset_index()
# Display DataFrame
print(df)
df.reset_index(drop=True)
df.reset_index(
drop=True, # to avoid the old index being added as a column
inplace=False) # (default) return df with the new index, i.e. do not create a new object
df.reset_index(drop = True, inplace = True)
>>> df.reset_index()
index class max_speed
0 falcon bird 389.0
1 parrot bird 24.0
2 lion mammal 80.5
3 monkey mammal NaN