Skip to content

Initial release

Latest
Compare
Choose a tag to compare
@daffidwilde daffidwilde released this 19 Dec 09:56
· 2 commits to main since this release
d0c9c30

🎉 🚀 Welcome to the first release of the census21api package!

What is this?

census21api is the unofficial Python interface to the "create a custom dataset" tool for the 2021 England and Wales Census. You can use this package to retrieve tables of counts or metadata, mirroring the tool itself via its API.

If you want to know more about the package, have a gander at our documentation.

What to do?

  1. Install from GitHub:
$ git clone https://github.com/datasciencecampus/census21api.git
$ cd census21api
$ python -m pip install .
  1. Start interacting with the Census API:
>>> from census21api import CensusAPI
>>> api = CensusAPI()
>>> table = api.query_table("HRP", "nat", ("accommodation_type", "health_in_general"))
>>> table.head()
         nat  accommodation_type  health_in_general    count population_type
0  K04000001                   1                 -8        0             HRP
1  K04000001                   1                  1  2259577             HRP
2  K04000001                   1                  2  2342946             HRP
3  K04000001                   1                  3   879487             HRP
4  K04000001                   1                  4   211501             HRP

What's Changed

New Contributors

Full Changelog: https://github.com/datasciencecampus/census21api/commits/0.0.1