A Python package to make it easier to visualize Census data.
Project description
censusviz
This package helps users more easily visualize maps using Census Population Estimate API and the Census Cartographic GeoJSON boundary files. It transforms GeoJSON files into easy to work with GeoPandas.GeoDataFrame and plot choropleth maps.
Installation
pip install censusviz
Dependencies
- python = "^3.6"
- pandas
- pyproj
- requests
- numpy
- shapely
- gdal = Wheels for Windows User
- fiona = Wheels for Windows User
- geopandas
- matplotlib
- descartes
- lxml
Usage
from censusviz import censusviz
# example functions
geocenpy.list_geoparams()
geocenpy.get_geocen_df(quality = "20m", year = "2010", area_type= "county")
geocenpy.get_geocen_plot(quality ="20m", year="2010", area_type="county", boundaries=False)
geocenpy.get_pop(api_key = my_api_key, year="2019", map = True)
geocenpy.get_house_est(api_key = my_api_key, year="2019", map = True)
geocenpy.get_region_pop(api_key = my_api_key, year="2019", map = True)
geocenpy.get_state_pop(api_key = my_api_key, year="2019", state_fip = "29", map = True)
Documentation
The official documentation is hosted on Read the Docs: https://censusviz.readthedocs.io/en/latest/
Contributors
We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.
Credits
This package was created with Cookiecutter and the UBC-MDS/cookiecutter-ubc-mds project template, modified from the pyOpenSci/cookiecutter-pyopensci project template and the audreyr/cookiecutter-pypackage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for censusviz-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46bdda557d0728e0eab1f266bb1631c0dff4453716b0d2b0b813d1dcac5472bb |
|
MD5 | 7ba531dc2454ad230b9552d8ec279e27 |
|
BLAKE2b-256 | 1bc0b2a3a421b90b34930c2108aef9db043e333335bcfad757edd13857e53fc8 |