delate index in a column pandas code example
Example 1: how to drop the index column in pandas
df.reset_index(drop=True, inplace=True)
Example 2: python pandas drop column by index
df.drop(a_dataframe.columns[0], axis=1, inplace=True)
df.reset_index(drop=True, inplace=True)
df.drop(a_dataframe.columns[0], axis=1, inplace=True)