Run
import pandas as pd # Take a DataFrame df_input = pd.DataFrame({ 'A': [2, 4, 6], 'B': [1, 3, 5]}, index = ['X', 'Y', 'Z']) # Remove index df_result = df_input.reset_index(drop=True) print(df_result)
Output