how to get rid of the auto generated row labels in pandas code example Example: df.drop index df.reset_index(drop=True, inplace=True)