convert a column of dataframe as index code example Example: pandas convert index to column df.reset_index(inplace=True)