Example Gallery
This gallery showcases pycancensus functionality through executable examples. Each example demonstrates different aspects of working with Canadian Census data.
Getting Started:
If you’re new to pycancensus, start with the tutorials/getting_started tutorial
Get your free API key at CensusMapper
Set your API key:
pycancensus.set_api_key("your_key_here")
Examples in this Gallery:
Basic Data Access: Learn core functions for accessing census data
Geographic Analysis: Create maps and work with spatial data
Data Visualization: Advanced plotting and analysis techniques
All examples are tested and executable - click any thumbnail to see the full code and results.
sphx_glr_auto_examples_plot_national_level.py
sphx_glr_auto_examples_plot_basic_census_data.py
sphx_glr_auto_examples_plot_geographic_analysis.py