Last updated
Analyze student performance, grade category, scholarship eligibility, weakest subject, and class ranking.
Analyze student performance, grade category, scholarship eligibility, weakest subject, and class ranking.
Your dataset contains a student_marks DataFrame with marks in three subjects and attendance percentage.
| Column | Type | Key / Notes |
|---|---|---|
| student_id | INT | Unique student ID |
| student_name | VARCHAR(50) | Student name |
| class_section | VARCHAR(10) | Student class section |
| maths | INT | Marks scored in Maths |
| science | INT | Marks scored in Science |
| english | INT | Marks scored in English |
| attendance_pct | FLOAT | Student attendance percentage |
student_marks — 8 rows
| student_id | student_name | class_section | maths | science | english | attendance_pct |
|---|---|---|---|---|---|---|
| 101 | Aarav | A | 85 | 78 | 90 | 92 |
| 102 | Meera | A | 72 | 68 | 75 | 88 |
| 103 | Rohan | B | 45 | 52 | 48 | 76 |
| 104 | Priya | A | 91 | 88 | 94 | 95 |
| 105 | Kabir | B | 60 | 65 | 58 | 81 |
| 106 | Ananya | B | 33 | 40 | 38 | 69 |
| 107 | Dev | A | 76 | 81 | 79 | 84 |
| 108 | Isha | B | 95 | 92 | 89 | 97 |
Calculate total marks and average marks for each student. Assign grade using average marks. Identify scholarship eligibility using marks and attendance. Find the weakest subject for each student. Rank students based on average marks.
Your output should look like this (partial example):
| student_id | student_name | total_marks | average_marks | grade | scholarship_status | weakest_subject | performance_rank |
|---|---|---|---|---|---|---|---|
| 108 | Isha | 276 | 92.00 | A | Eligible | english | 1 |
| 104 | Priya | 273 | 91.00 | A | Eligible | science | 2 |
| ... | ... | ... | ... | ... | ... | ... | ... |