Stephen McAteer

Logo

Father of two, husband of one. PhD in mathematical physics. Lead data scientist at the Victorian Auditor-General's Office. Long suffering Essendon supporter.

LinkedIn - GitHub - email

Image source: https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Tom_Roberts_-_Holiday_sketch_at_Coogee_-_Google_Art_Project.jpg/640px-Tom_Roberts_-_Holiday_sketch_at_Coogee_-_Google_Art_Project.jpg
6 August 2018

Grabbing Australian public holiday data from data.gov.au

data.gov.au maintains data on Australian Public holidays, but needs some massaging to get it into usable format. I wrote a cheap-and-nasty Python script for downloading and shaping the data into a more usable form. Click to view code.

The output is a single Pandas DataFrame in the following format:

  STATE DATE HOLIDAY_NAME INFORMATION MORE_INFORMATION
0 ACT 2015-01-01 New Year’s Day New Year’s Day is the first day of the calenda… NaN
1 ACT 2015-01-26 Australia Day Always celebrated on 26 January http://www.australiaday.org.au/
2 ACT 2015-04-03 Good Friday Easter is celebrated with Good Friday and East… NaN

I said all I have to say about this in the code comments. :)

tags: python - gist - data.gov.au - public holiday data - australia