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.5.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for random_tables-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd13a095fc66e78b3e15d48425096b79db3fbdc092b629be3ada694363079bf |
|
MD5 | 4c668884bf2c8b1a64d2a054958a0e35 |
|
BLAKE2b-256 | 76a50d4928bd47baac097a47fb3f94510e4afc2c6b16606b697a4c5859b9a72b |