2021: Week 41 - Southend Stats

Challenge by: Jenny Martin

I was talking to a friend the other day who is a big football fan, but unfortunately their team hasn't been doing too well in recent years. They support a local team called Southend United and my ears pricked up when he claimed they've only won 18 games in the last 108 that they've played. My initial intention with this challenge was to investigate this claim, but instead I stumbled upon historical data which I though might help him to feel a little better and remember the good times.

Input

We're using the Football Club History Database for our data this week:

Requirements

  • Input the data
  • Rename the penultimate column from P 1 (as it appears in Prep) to Pts
  • Exclude null rows
  • Create a Special Circumstances field with the following categories
    • Incomplete (for the most recent season)
    • Abandoned due to WW2 (for the 1939 season)
    • N/A for full seasons
  • Ensure the POS field only has values for full seasons
  • Extract the numeric values from the leagues
    • FL-CH should be assigned a value of 0 
    • NAT-P should be assigned a value of 5
  • Create an Outcome field with 3 potential values. (Note: this should apply to all seasons in the data order regardless of any gaps. The current season will have a null value)
    • Promoted, where they are in a league higher than their current league in the following season
    • Relegated, where they are in a league lower than their current league in the following season
    • Same League, where they do not change leagues between seasons
  • Create new rows for seasons that were missed due to WW1 and WW2
  • Update the fields with relevant values for these new rows
    • e.g. change their Special Circumstances value to WW1/WW2
  • Output the data

Output

  • 12 fields
    • Season
    • Outcome
    • Special Circumstances
    • League
    • P
    • W
    • D
    • L
    • F
    • A
    • Pts
    • POS
  • 116 rows (117 including headers)
You can download the full 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