Skip to main content

little module that helps to create tables for a specified schema with random content

Project description

RandomTables

little module that helps to create tables for a specified schema with random content

How to use

To create a random table you can specify a schema upfront and then call the class

from randomtables import DataSetGenerator

# define schema
schema = [
    {"type": float}, 
    {"type": int},
    {"type": str, "split": False},
    {"type": str, "split": True, "names": True}
]

# initialize the schema
dfg = DataSetGenerator()

# generate a pandas dataframe
data = dfg.generate(
    schema = schema,
)

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

test_random2-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

test_random2-0.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file test_random2-0.0.1.tar.gz.

File metadata

  • Download URL: test_random2-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for test_random2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 73c8020aa1eb43696ff8ddf7ed0d129e2a5d555ff35cb936e1bbcf418b0d6f6f
MD5 b924b9ce77e6bca074aa72397ce3109e
BLAKE2b-256 1156495dc79ac828f8568e179facd966a278bfffc8904ffe47dfe87b77483680

See more details on using hashes here.

File details

Details for the file test_random2-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: test_random2-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for test_random2-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03cde4ec541b0bdfb3f1f05d64f308d10936c9cc9512ebb7f988b5efcd04d5f1
MD5 aff3957549d801784661e60cc048fe0e
BLAKE2b-256 a5cbda245a9f4745dc6e3b7941e41ca1301ae91f72a668b040de0d73435ea152

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