I have 2 dataframes below:
Course:
-------------------------—
Name | Course
-------------------------—
Tom | English
Tom | Mathematics
Lily | English
Lily | Chinese
Score:
-------------------------—-------—-------—
Name | English | Chinese | Mathematics
-------------------------—-------—-------—
Tom | 78 | 0 | 90
Lily | 85 | 88 | 0
I want to use course value in course table to join the specified column in score table to get the value. then get the result as below, only 2 course columns will be displayed.
Result:
-------------------------—--
Name | Course1 | Course2
-------------------------—--
Tom | 78 | 90
Lily | 85 | 88