I have a DataFrame that looks like the below. "Name" represents a student name and values below each of the Test variables represent the test grade.
Name Test1 Test2 Test3
Ana 87 93 82
Cole 62 73 84
Sia 64 58 60
Max 93 95 99
Leah 93 90 85
Cam 76 80 83
The desired result is the DataFrame below. Where "MinTestGrade" represents that lowest grade each student earned between the 3. "TestNumber" is the Test they got the lowest grade on.
Name TestNumber MinTestGrade
Ana 3 82
Cole 1 62
Sia 2 58
Max 1 93
Leah 3 85
Cam 1 76
How can I do this using python?