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
random-tables-0.0.3.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for random_tables-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a4010d6133e99d6f9c9893146c55aa68f60059c4f6f56a88a8c8fb82b02917 |
|
MD5 | e20baf995af78013a8043923ee14041f |
|
BLAKE2b-256 | 3d9d740c98aa2d6c3a7e8b8862ac2809f1868191e0ce388c3224dc91d23f3b8e |