Skip to main content

Easy data generation

Project description

CreateData

PyPI - Version

When you need to come up with a test dataset quickly.

Python

pip install CreateData

and you need to install:

pip install pandas numpy python-dateutil

Fast and easy data generation N-row

import CreateData.create_data as cd

cd.EasyData().gnrt({'size':1000}, easy=True)

Output example:

id date bool int float str
0 2023-07-17 False 6 5.776716 ITYELsf
1 2024-01-01 True 8 6.385161 kvGhRr
2 2023-04-01 False 3 3.418855 Ur
3 2023-11-06 True 8 5.984482 PZqwSJaO
4 2023-07-16 False 1 4.696562 yvye

Need more columns and their customizations?

params = cd.EasyData().get_params()

Output:

{'size': 100, 'date': {'col': 1, 'min_date': '2023-02-27', 'max_date': '2024-02-27'}, 'bool': {'col': 1}, 'int': {'col': 1, 'min_int': 1, 'max_int': 10}, 'float': {'col': 1, 'min_float': 1, 'max_float': 10}, 'str': {'col': 1, 'min_str': 1, 'max_str': 10, 'dgts': False, 'pctn': False}}

small clarification:
max_date <- now()
min_date <- max_date - 1 year

Edit the dictionary and pass it to the function

cd.EasyData().gnrt(params)

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

CreateData-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CreateData-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file CreateData-1.0.1.tar.gz.

File metadata

  • Download URL: CreateData-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for CreateData-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cabfe520573b78705d6949ee58317691e8fea52a930a32a2a41e4341b9c47a20
MD5 34271dba78412e6b13cdf5b6848006d8
BLAKE2b-256 a612bde7fbc970fa8262b707322fc9ccf9ab414360bec7b4f46602d74182ed66

See more details on using hashes here.

File details

Details for the file CreateData-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: CreateData-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for CreateData-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2dd201d0b1430bc6bf4fe8accf18ede48ea3c38e4672d523403b5acff3c31f2
MD5 397aec38f7c3d0a131e59e4f4232c5b7
BLAKE2b-256 8007d1c56eb35bd02bc577eeda56b5871a560b0c09f9f1de82c724ae2a95bd1c

See more details on using hashes here.

Supported by

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