I have some csv table from google form for attendance report. The data looks like this
df1= pd.read_csv("12-9-2020.csv")
df1
Name StudentID
Robert C 102
Jessica Myla 103
Nana D 105
df2= pd.read_csv("12-10-2020.csv")
df2
Name StudentID
J Myla 103
Harris Kurt 104
Nana Duncan 105
I have many tables that I want to make a compilation attendance report. The basic compilation attendance report looks like this:
df_Basic
Name StudentID 12/9/2020 12/10/2020
Robert Case 102 0 0
Jessica Myla 103 0 0
Harris Kurt 104 0 0
Nana Duncan 105 0 0
I want to input the data form df1, df2 to the compilation attendance report. If the student attend the class, it must be as 1 and the spell of the student name will match with the compilation attendance report format.
The desired result looks like this:
df_Result
Name StudentID 12/9/2020 12/10/2020
Robert Case 102 1 0
Jessica Myla 103 1 1
Harris Kurt 104 0 1
Nana Duncan 105 1 1
Thank you for helping me