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.4.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for random_tables-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0fb30da89a753d3e9f3a102e239d148f0022ba20f786a7e42739dd8daf29e5 |
|
MD5 | aa7d698d267727f9521cfa7611bb03a3 |
|
BLAKE2b-256 | 9cbc5353e20b4dc1515b71c75afc42f4538e3ed2e6659d929144270706932b37 |