dataframe remove index column name code example
Example 1: how to drop the index column in pandas
df.reset_index(drop=True, inplace=True)
Example 2: how remove name of index pandas
df = df.rename_axis(None, axis = 1)
df.reset_index(drop=True, inplace=True)
df = df.rename_axis(None, axis = 1)