I have one table
grade gradepoint
o 10
A 9
B 8
I have second table
subjectname credits
englishI 3
mI 3
AC Lab 2
I have third table containing grades for different subjects like this
rollno englishI mI ACLab
1 A B o
2 B B o
now I need a table containing subcolumns in each column in third table
rollno englishI mI ACLab
grade gradepoint Credits grade gradepoint Credit grade gradepoint credit
1 A 9 3 B 8 3 o 10 2
2 B 8 3 B 8 3 o 10 2
how to join these dataframes into one dataframe and how to access subcolumns in a column