PopPyGen: Synthetic Human Population Generator for Python
Project description
PopPy
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.1.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
File details
Details for the file poppygen-0.1.0.tar.gz.
File metadata
- Download URL: poppygen-0.1.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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeae2f9e4b409e7f467abe986a3ec1dce0f77d63c6ea944e0d074e84eec6c2fe
|
|
| MD5 |
ab56b7b650102d6635eb45a3cd7db1c1
|
|
| BLAKE2b-256 |
cfeb6db58458ddc8c7f0a20a2ddd566c2faedf26e46dc2cbb55883105183a3ec
|
File details
Details for the file poppygen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: poppygen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
274bd97961895a6aa740fd7a320cb587b9d3e1f0485b6ab3d58df490bbb4bc25
|
|
| MD5 |
16e4c221019ffd3758b0680b6e813c2c
|
|
| BLAKE2b-256 |
144abbda5e92148e52948dce81cfa48479100894454a68b86d1f3650e3724e6f
|