pandas replace index with integers code example Example: reset index pandas df.reset_index(drop=True)