2023: Week 21- Prep School Grades

 Created by: Habeeb Gayle

This is our next challenge from one of the members of the 38th cohort of the Data School UK. 

The Prep School is interested in monitoring the progress of their students. They are specifically trying to find students whose report grades have declined from 2021 to 2022. Each student’s report card has 4 categories when grading: attainment, attendance, effort, and behaviour.

Input

The report card grades of students from 2021 and 2022. Each category is on a scale of 1-9; with 9 being the best grade.

Requirements

  • Input the data 

  • Reshape the data so that each student has 4 rows each, with grades for 2021 and 2022 being in separate fields 

  • Calculate the average grade for each year for each student

  • Calculate the difference between the average grade of each student from 2021 to 2022

  • Categorize each student into the following 3:

    • Improvement (>0)

    • No change (=0)

    • Cause for concern (<0)

  • Filter out the data to leave only students with a ‘cause for concern’

  • Output the data 

Output


9 fields 
    • Student_id

    • First_name

    • Last_name 

    • Gender

    • D.O.B

    • 2021

    • 2022

    • Difference 

    • Progress 


10 rows (11 incl. headers)


You can download the output here.


After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter using #PreppinData and tagging @habeeb_gayle, @Datajedininja, @JennyMartinDS14 & @TomProwse1


You can also post your solution on the Tableau Forum where we have a Preppin' Data community page. Post your solutions and ask questions if you need any help!

Popular posts from this blog

2023: Week 1 The Data Source Bank

2023: Week 2 - International Bank Account Numbers

How to...Handle Free Text