Skip to main content

Virva is the simplest fake dataframe generator

Project description

Virva

Virva is the simplest fake dataframe generator

Purpose of the package

  • The purpose of this package is to provide the world simplest fake dataframe generator

Features

  • Generate fake dataframe of any lenght
  • Random names generations
  • Random cities generations
  • Random jobs title generations
  • Random contrie generations
  • CSV export
  • Generate custom categorical variables
  • Generate custom numerical variables
  • And much more

Getting Started

The package can be found on pypi hence you can install it using pip

Installation

pip install virva

Usage

# Import Virva generator
>>> from virva.core import Generator

# generate 50 random names
>>> names= Generator.generate_names("Names", number=50)

# generate 50 random age's between 5 and  18 year old
>>> ages =Generator.generate_integers("Ages", number=50, 5, 18)

# generate 50 random  scores between 1.0 and 5.0
>>> scores=Generator.generate_floats("stars", number=50, 1.0, 5.1)

# generate 50 random gender type between Male (M) and Female (F)
>>> gender=Generator.generate_objects("Gender", number=50,  ["M", "F"])

# generate 50 random jobs
>>> jobs= Generator.generate_jobs("Jobs", number=50)

# generate 50 random cities
>>> cities= Generator.generate_cities("Cities", number=50)

# generate 50 random diseases
>>> diseases=Generator.generate_diseases("diseases", number=50)

# generate 50 random foods
>>> foods=Generator.generate_foods("foods", number=50)

# generate 50 random us_states
>>> us_states=Generator.generate_us_states("us_states", number=50)

# generate 50 random contries
>>> countries=Generator.generate_countries("Countries", number=50)


#generate csv file with above dataframe with the name "my_shynthetic_dataframe"
>>> list_of_dataframe=[names, ages, scores, gender, jobs, cities, diseases, foods, us_states, countries]

>>>Generator.assemble("path/to/your/directory", list_of_dataframe, "my_shynthetic_dataframe")

Contribution

Contribution are welcome. Notice a bug ? let us know. Thanks you

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

virva-0.1.9-py3-none-any.whl (80.4 kB view details)

Uploaded Python 3

File details

Details for the file virva-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: virva-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 80.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for virva-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 81207607cff360e0e4553ba2be08c893615056b28455eb2fcf453be1f14232b6
MD5 5ea54468502546323b040704bc97cd51
BLAKE2b-256 d65a0c3d867374503794f69aef3979d4ec3ac8a18c33e7f48061b34503e39808

See more details on using hashes here.

Supported by

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