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.1.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for random_tables-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5fa8f51edca393e0497b1a2281bf4bb2e6205a9868b5fb09e88226adfe5b7b3 |
|
MD5 | 48708f2abefaadfd82d908de3f81813f |
|
BLAKE2b-256 | 3259f51b9550fbc9d6916211437b8d0067c7475cc826d3441088fafe56c986d5 |