Skip to main content

faker-pyspark is a PySpark DataFrame and Schema provider for the Faker python package

Project description

PySpark provider for Faker

Python package CodeQL

faker-pyspark is a PySpark DataFrame and Schema (StructType) provider for the Faker Python package.

Description

faker-pyspark provides PySpark based fake data for testing purposes. The definition of "fake" in this context really means "random," as the data may look real. However, I make no claims about accuracy, so do not use this as real data!

Installation

Install with pip:

pip install faker-pyspark

Add as a provider to your Faker instance:

from faker import Faker
from faker_pyspark import PySparkProvider
fake = Faker()
fake.add_provider(PySparkProvider)

PySpark DataFrame, Schema and more

>>> df           = fake.pyspark_dataframe()
>>> schema       = fake.pyspark_schema()
>>> df_updated   = fake.pyspark_update_dataframe(df)
>>> column_names = fake.pyspark_column_names()
>>> data         = fake.pyspark_data_dict_using_schema(schema)
>>> data         = fake.pyspark_data_dict()

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

faker_pyspark-0.7.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

faker_pyspark-0.7.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file faker_pyspark-0.7.0.tar.gz.

File metadata

  • Download URL: faker_pyspark-0.7.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for faker_pyspark-0.7.0.tar.gz
Algorithm Hash digest
SHA256 1ecc3282cbb3bd4545e5134e1b448b619a4ccd23af211f72e945807ebb6d1f0a
MD5 b883c89c2bdd4ced0fff938a9e0d757e
BLAKE2b-256 1847d4e4332032308efe9e2a978e8f07d9c5c654726ca7c9b8acc82bcf53ab77

See more details on using hashes here.

File details

Details for the file faker_pyspark-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: faker_pyspark-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for faker_pyspark-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27fc863853a49d70b58b3a911f8c46fc95876f7bc65ce6d71d5cac7ffad5ea01
MD5 0b3deaad78d54ddc630808d1826ff2a4
BLAKE2b-256 c2f16dbdbc2a88185504572e86d11d924767dbec14857b946f1c386793163545

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