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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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