pandas drop index example Example 1: df.drop index df.reset_index(drop=True, inplace=True) Example 2: reset index pandas df.reset_index(drop=True)