Skip to main content

Toolkit for generating fake datasets.

Project description

Fake Dataset

image

Toolkit for generating fake datasets.

How to Install

pip install fake-dataset

Usage

>>> from fake_dataset import columns, generators

>>> data_gen = generators.DataGenerator(
...    vehicle=columns.CategoricalRandomColumn(categories=["car", "bus", "bicycle"], missing_rate=(0.2, 0.5), na_value="NA"),
...    year=columns.IntegerRandomColumn(values_range=(1950, 2010), missing_rate=(0.1, 0.2)),
...    value=columns.FloatRandomColumn(values_range=(10e4, 10e5), missing_rate=(0.0, 0.0)),
...    )

>>> data_gen.sample(3)
           value vehicle  year
0  823994.355388     car  2002
1  903007.903927      NA  1952
2  435372.320886      NA  None

Credits

This package was created with Cookiecutter and the giswqs/pypackage project template.

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

fake_dataset-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

fake_dataset-0.0.2-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fake_dataset-0.0.2.tar.gz.

File metadata

  • Download URL: fake_dataset-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for fake_dataset-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7e229b4171e78cc91f96d781bfcac6b9fe902a95f30836e4203d854ed372387b
MD5 44243bd32e9f5b650c478cc249a53c77
BLAKE2b-256 2f3d1812e390d1ef2f6fe4118f82472612996851a5a00ed19542e238914884b3

See more details on using hashes here.

File details

Details for the file fake_dataset-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: fake_dataset-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for fake_dataset-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f055e5801312ccd2cd044fe891f8000d9af9b68dc85ebb18e7b569156fbe86a9
MD5 1895afe15f9c68a3d357ba038b4e8f3f
BLAKE2b-256 54264b195d3b85b3bac3a7c3c728dbe8eb1799b1707615548f6870418ac9310b

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