Skip to content

Latest commit

 

History

History
189 lines (157 loc) · 8.38 KB

README.md

File metadata and controls

189 lines (157 loc) · 8.38 KB

Australian Parliamentarian Education Map (APEMAP)

Binder

Australian Politicians Education Map

Background

Simply put I wanted to know where all the Parliamentarian's went to school and any links that exist between them. The closest approximation to this was this Sydney Morning Herald article which I used as a starting point.

There are several intriguing questions that arise from this research:

  • Where did my local MP and [insert name of any politician my friends keep asking me about] go to school?
  • Which members have attended the same school?
  • Has school funding been affected by the number of politicians as alumni ?
  • Has there been a shift between parliaments ?
  • Are there schools which routinely have MPs ?
  • Does the location of the school impact party and policy ?

The other good reason for doing this make Australian political data easier to find and update. There is a good library for it in R https://github.com/RohanAlexander/AustralianPoliticians, but I wanted to make the data a little more agnostic.

See analysis or notebook for initial analysis.

View the Felt Map here

Please note that I collated this data to the best of my ability in my free time and for fun. If you plan to use it for research purposes, I recommend conducting some quality assurance and contributing to the dataset. Additionally, please ensure that you provide proper attribution and consult the copyright and licensing information. copyright

Preliminary Results

School Sector

school_sector_breakdown.png school_sector_by_party.png high_school_47.png high_school_46.png

Demographics

gender_vs_party.png age_vs_chamber.png mean_age_by_party.png

Financial Data

total_gross_income_per_student.png other_private_sources_per_student.png

Missing Ministers

We are missing the exact school for the following ministers and senators.

Missing Senators

  • Alex Antic - Public
  • Arthur Sinodinos - Public
  • Jana Stewart - ?
  • Jess Walsh - Non-government
  • Karen Grogan - ?
  • Peter Whish-Wilson - Both
  • Marielle Smith - Both

Missing MPs

  • Graham Perrett - Public
  • Peter Khalil - Non-government
  • Milton Dick - Non-government
  • Rob Mitchell - Public
  • Llew O'Brien - Did not graduate but left school in year 9
  • Michelle Ananda-Rajah - ?
  • Sam Birrell - ?
  • Susan Templeman - Public
  • Stephen Bates - International probably
  • Tracey Roberts - ?
  • Vince Connelly - Non-government
  • Julian Simmonds - Non-government
  • Nicolle Flint - Non-government

Data sources

Caveats

Wikipedia has the best linkage between a member and school attended, it is not as rich as APH. The school names in APH are looked up against acara_school_locations_2022 to see if we can find a match. Locations are derived from Wikipedia and Google maps. Some universities have multiple locations and campuses which may have lead to incorrect locations I use headquarter locations in this case https://www.wikidata.org/wiki/Property:P159 As above some may be online in which case I will just pick a headquarters of campus

Schools search

Datasets

External Datasets

  • acara_education_finances - Financial data from ACARA only (2021)
  • acara_finance_missing - Schools where no financial data exists
  • acara_school_locations_2022 - School locations from ACARA
  • acara_school_profile_2022 - School profiles from ACARA
  • aec_parties - Party lookup from AEC
  • aec_elb_2021 - AEC 2021 Electoral Boundaries
  • aph_parliamentarians - All Parlmentarians downloaded from APH
  • education - Education data compiled from multiple sources (Originally Wikipedia+APH)
  • education_acara - Matched datasets to ACARA data
  • members_wiki - Members from Wikipedia
  • members_aph - Members from APH
  • members_occupations - Members occupations from APH
  • members_secondary_occupations - Miniiters secondary occupations
  • members_secondary_school - Members secondary school from APH (split by "/,")
  • smh_careers - Career data from SMH
  • smh_ministry - Ministry data from SMH

Compiled Datasets

  • members - All members compiled from multiple sources
  • education - All education compiled from multiple sources
  • member_education - Linking table between members and education

Views

  • member_aph
  • member_aph_47
  • member_aph_46
  • member_secondary_school_education_47
  • member_secondary_school_education_46

Installation

Python + Poetry

pip install poetry
poetry install

Viewing Data

Using QGIS open the data/analysis.qgz file.

Using Datasette run the following command from the root directory

datasette install
datasette data/aped.db --load-extension spatialite

Copyright & Licensing

  • AEC : © Commonwealth of Australia (Australian Electoral Commission)2023
  • ACARA : © Australian Curriculum, Assessment and Reporting Authority (ACARA) 2023
  • ABS : © Commonwealth of Australia (Australian Bureau of Statistics) 2023

Online Layers

Built with

  • Pandas + Geopandas
  • QGIS
  • PostgreSQL + PostGIS
  • Wikidata
  • Jupyter
  • Plotly + Dash
  • Mapbox
  • Felt

TODO

Fun Facts

  • I can never remember how SPARQL entities work exactly so I just got ChatGPT to write them for me

PostGIS to Geopackage

ogr2ogr -f GPKG aped.gpkg PG:"service=ape" -oo LIST_ALL_TABLES=YES -mapFieldType "StringList=String,IntegerList=String" -oo SCHEMAS="public"

Existing Data and Articles

Credits

Sydney Morning Herald - Article

Developers: Daniel Carter, Noah YimEditors Fleta Page, Rob Harris Design/Production: Mark Stehle, Matthew Absalom-Wong