2023: Week 40 - Prep School Subject Dropouts

Created by: Ed Hayter

This challenge is part of the ongoing series related to “Prep” School provided by DS38 that we started to share earlier in 2023.

This Preppin’ Data Challenge requires you to process the school’s log of student class choices that were recorded in a structure that made sense for timetabling and reshape it so that the school has a breakdown of drop-out rates for each subject. Because the data was inputted manually there are typos in subjects that need to be corrected.

Input

One file which you can download here.

Requirements

  • Input the student class choice data 

    • Make sure Prep reads the first line of the file as headers.

  • Pivot the data so that we have a row for each class choice.

  • Group the Subject Names on Spelling to standardise the subject names and exclude nulls.

  • Create a flag to mark the groups that are dropped or active.

  • Aggregate the Data by Subject and Active Flag and count the students in each group (note you'll need to use Count rather than Count Distinct).

  • Pivot the data so that we have a column for a count of students actively enrolled in a subject and for those who have dropped out of a subject.

  • Make some row-level calculations to show the total enrollment in a subject (active + dropouts) and then create a rate for each subject showing the % of total enrollments that dropped out.

  • Output the data.

Output

  • 5 Fields

    • Subject

    • Count of Students who Dropped Out

    • Count of Students who are Actively Enrolled

    • Total Enrollment in the Subject.

    • Rate at which people Drop Out.

  • 7 rows (8 including headers)

Note: some of your student counts may differ on the ordering / grouping methodology used

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 @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