rename the column index to a list pandas code example Example: rename dataframe index column pandas df.index.names = ['new_name']