I have a list that contain the columns names of of one table. Now what i am trying to do is i am getting column values from one table and are trying to make it column names of another table.
List contain colnames of one table
v = list(df_new.columns.values)
and i am getting column values in loop from another and trying to replace it with names in list.
for column in df_img_attr_name_type['Attribute_Name']:
df_new = df_new.rename(columns = {v[1:2]:column})
i want col_name = 1,2,3,4 to be col_name = A, B, C, D