I am trying to read the excel which contains the student test details using pandas.
import pandas as pd
frame = pd.read_excel('Test.xlsx',skiprows=3)
print(frame)
there are 3 extra rows those I am skipping. But the problem is I have the same headers repeated for each student.
A B C D E
Class First
StudentID 0001 StudentName Name
DateOfTest TestTitle TestMarks TestDuration
12/02/2019 Eng 97 12:30:00
13/02/2019 Mat 91 12:30:00
14/02/2019 Phy 81 12:30:00
Class Second
StudentID 0002 StudentName Name
DateOfTest TestTitle TestMarks TestDuration
12/02/2019 Eng 67 12:30:00
13/02/2019 Mat 41 12:30:00
14/02/2019 Phy 81 12:30:00
using the above code I can read all the data as a single frame but I need multiple frames. How Can I read each student's test details and it's helpful is there any way to read the class name and student details Please find the attached file Test.xlsx
Test.xlsxas well. It is difficult to say if there is improper reading of the file.