remove index column dataframe code example Example 1: reset index pandas df.reset_index(drop=True) Example 2: pandas df remove index df = df.reset_index(drop=True)