This resets the index to the default integer index and removes the original one.
If you want to assign this change to original dataframe it is easier to use:
df1.reset_index(drop=True, inplace=True)
As it will edit the df1 dataframe without making a copy of it.