PopPyGen: Synthetic Human Population Generator for Python
Project description
PopPyGen
A statistically accurate synthetic human population generator for python, based on demographic and regional datasets.
Installation
pip install poppygen
Usage
#Note: Be Patient, this may take a few minutes for the large datasets to process.
from poppygen import PopulationGenerator
from poppygen.datasets import process_acs, process_safegraph_poi, process_pums
poi_df = process_safegraph_poi()
acs_df = process_acs()
pg = PopulationGenerator(poi_df, acs_df)
local_population = pg.generate_population(population_size=100, census_block_group=[120330001001, 120330036071])
print(local_population[0].baseline)
pg.generate_activity(population=local_population)
print(local_population[0].activity["location"])
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
poppygen-0.2.0.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
poppygen-0.2.0-py3-none-any.whl
(35.3 MB
view details)
File details
Details for the file poppygen-0.2.0.tar.gz.
File metadata
- Download URL: poppygen-0.2.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8cc532ff7f046d889741d96e4812855b5f352f269bc99954b4aafa0d14cf289
|
|
| MD5 |
ac281e8142c1659e3647df541b5f3c24
|
|
| BLAKE2b-256 |
7061e511ef70c7979735cfd73cdcead11c02e040d506b46bf799c918b8295454
|
File details
Details for the file poppygen-0.2.0-py3-none-any.whl.
File metadata
- Download URL: poppygen-0.2.0-py3-none-any.whl
- Upload date:
- Size: 35.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
641f22573eb35d54701f7b28d91192bf23b3dd03f9ccfa9749f855c03fbc0de3
|
|
| MD5 |
154ed936696dbc484642a4c8592ffcdc
|
|
| BLAKE2b-256 |
88616f77f11e6cdb8ac240fdbd3b36c688c5784bc3968796650b3abc45ad22ce
|