Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poppygen-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

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

Hashes for poppygen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eeae2f9e4b409e7f467abe986a3ec1dce0f77d63c6ea944e0d074e84eec6c2fe
MD5 ab56b7b650102d6635eb45a3cd7db1c1
BLAKE2b-256 cfeb6db58458ddc8c7f0a20a2ddd566c2faedf26e46dc2cbb55883105183a3ec

See more details on using hashes here.

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

Hashes for poppygen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 274bd97961895a6aa740fd7a320cb587b9d3e1f0485b6ab3d58df490bbb4bc25
MD5 16e4c221019ffd3758b0680b6e813c2c
BLAKE2b-256 144abbda5e92148e52948dce81cfa48479100894454a68b86d1f3650e3724e6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page