How to replace one column values with another column values
Question:
Answers:
Since the second column is a multi-index column, you are basically trying to set a single column as a dataframe. You will have to refer to the exact column name to do that replacement.
z['ID']=z['teacher_number_of_previously_posted_projects']['mean']
Since the second column is a multi-index column, you are basically trying to set a single column as a dataframe. You will have to refer to the exact column name to do that replacement.
z['ID']=z['teacher_number_of_previously_posted_projects']['mean']