faker-pyspark is a PySpark DataFrame and Schema provider for the Faker python package
Project description
PySpark provider for Faker
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.add_provider(PySparkProvider)
If you already use faker, you probably know the conventional use is:
from faker import Faker
fake = Faker()
PySpark DataFrame and Schema (StructType)
>>> df = fake.pyspark_dataframe()
>>> schema = fake.pyspark_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
faker_pyspark-0.2.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for faker_pyspark-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f39651d8a71afb6ab6d8c7455bd4a1d1249bff37557059a3b61556479b84ee7 |
|
MD5 | d9173c26e96cd08ae9bf89db8afc6d8d |
|
BLAKE2b-256 | 18ededf13308585888f045188f3486c0d91bea55505ca1c7efe37b70f6e29c55 |