Create neighbourhood and census loaders #57
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Create database loaders for neighbourhood boundaries and census data.
Files to Create
portfolio_app/toronto/loaders/neighbourhoods.pyportfolio_app/toronto/loaders/census.pyAcceptance Criteria
loaders/dimensions.pyTechnical Notes
get_session()andupsert_by_key()fromloaders/base.pydim_neighbourhoodtablefact_censustableLabels
Type/Feature,Priority/Medium,Component/Backend,Component/Database,Tech/PythonStarting implementation of neighbourhood and census loaders.
Implementation complete:
loaders/census.pywithload_census_data()functionNote: Neighbourhood loader already exists in
loaders/dimensions.py. The existingload_neighbourhoods()function handles theNeighbourhoodschema. ForNeighbourhoodRecordfrom the API parser, a conversion step may be needed.