myDataFrame.set_index('column_name')
import pandas as pd # Set column as index df = df.set_index("column") # Display DataFrame print(df)
df['index1'] = df.index