Skip to main content

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


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)

Uploaded Source

Built Distribution

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

poppygen-0.2.0-py3-none-any.whl (35.3 MB view details)

Uploaded Python 3

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

Hashes for poppygen-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e8cc532ff7f046d889741d96e4812855b5f352f269bc99954b4aafa0d14cf289
MD5 ac281e8142c1659e3647df541b5f3c24
BLAKE2b-256 7061e511ef70c7979735cfd73cdcead11c02e040d506b46bf799c918b8295454

See more details on using hashes here.

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

Hashes for poppygen-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 641f22573eb35d54701f7b28d91192bf23b3dd03f9ccfa9749f855c03fbc0de3
MD5 154ed936696dbc484642a4c8592ffcdc
BLAKE2b-256 88616f77f11e6cdb8ac240fdbd3b36c688c5784bc3968796650b3abc45ad22ce

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