Giter VIP home page Giter VIP logo

canadian-census's Introduction

Canadian Census Data Processing

Notes

  • Variables are worked out as a proportion of the total variable (i.e, their heading)
  • Calculated variables (e.g., median age) are retained
  • Total variables are retained

Sources

File Summaries

  • scripts/menu_list.py: Parses CSV to extract and structure characteristics.
  • scripts/clean.py: Filters menu items based on valid IDs from the CSV.
  • scripts/computed_values.py: Identifies and collects calculated variables from the CSV.
  • scripts/intersect.py: Generates map data by intersecting areas and buildings.
  • data/census/: Contains the raw census data in CSV format.
  • src/database.ts: Processes CSV files and updates Redis.
  • src/server.ts: Sets up an Express server to serve map tiles.
  • src/statistics.ts: Calculates percentiles for menu items.

Build and Run

  1. Install dependencies:
npm install
pip install -r requirements.txt
  1. Build the TypeScript code:
npm run build
  1. Generate menu items and statistics:
python scripts/menu_list.py
npm run statistics
python scripts/clean.py
  1. Generate map data:
python scripts/intersect.py
  1. Create the database:
npm run create
  1. Start the server:
npm run start

License

This project is licensed under the MIT License.

canadian-census's People

Contributors

jacobweinbren avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.