I have two different data (students performance).
dict1 --- performance for the 1st semester
dict2 --- performance for the 2nd semester
I need to concatenate two df's so that sub-columns for semesters appear in the columns of disciplines.
import pandas as pd
dict1 = {'Students': ['A', 'B', 'C'], 'Dicsipline1': ['a', 'na', 'a'], 'Dicsipline2': ['a', 'na', 'a']}
dict2 = {'Students': ['A', 'B', 'C'], 'Dicsipline1': ['na', 'a', 'a'], 'Dicsipline2': ['a', 'a', 'a']}
df1 = pd.DataFrame(dict1)
df2 = pd.DataFrame(dict2)
Desired result like
I need to add one level.
