start indexing from 0 after drop in dataframe in python code example Example: reset index pandas df.reset_index(drop=True)