How to drop the index column of a pandas DataFrame in Python

Dropping the index column of a pandas.DataFrame removes the index column from the DataFrame and replaces it with the standard sequential indexing.

Solution for How to drop the index column of a pandas DataFrame in Python : You can use pandas.DataFrame.reset_index() to drop the index column of a DataFrame Call pandas.DataFrame.reset_index(drop=True, inplace=True) to reset the index of pandas.DataFrame.


how-to-drop-the-index-column-of-a-pandas-dataframe-in-python