Calculate each student's average score across all subjects and assign a letter grade.
DataFrame df with columns: name, math, science, english
average column (mean of math, science, english)grade column: A (>=90), B (>=80), C (>=70), D (<70)Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.