A short script that converts Excel spreadsheets of Toronto neighbourhood profiles ( from Toronto Open Data) into JSON files. Wrote it to explore the 2021 census data. That also means it doesn't actually implement the proper data exploration API, but that's not important.
- Visit the Toronto Open Data page for Neighbourhood Profiles and download the XLSX file you want to parse.
- Place the file in this folder and rename it
neighbourhood-profiles-<YEAR>.xlsx
. - Build this crate, and run for this year:
to_hood_profile_serializer <YEAR>
The output will be placed into neighbourhood-profiles-<YEAR>.json
. Use -r/--raw
option if you
don't want pretty-printing.
This code is available under the MIT licence.