Skip to main content

No project description provided

Project description

spark-plot

PyPI Testing License

  • Simplifies plotting Spark DataFrames by making calculations for plots inside Spark
  • Plot types: Histogram
  • Generates Matplotlib plots with a similar Pandas Plotting API

TODO:

  • Raster plots (2D Histograms)
  • Supports multiple Python plotting frontends (Altair, Plotly and more)

Installation

pip install spark-plot

Usage

A simple example using Matplotlib

# Create an Spark DataFrame
from nycflights13 import flights as flights_pd

flights = spark.createDataFrame(flights_pd)

# Make a Histogram

from spark_plot import mpl

mpl.hist(flights, "distance", color="#474747")

Flights Histogram

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

spark-plot-0.0.1.tar.gz (36.8 kB view details)

Uploaded Source

File details

Details for the file spark-plot-0.0.1.tar.gz.

File metadata

  • Download URL: spark-plot-0.0.1.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for spark-plot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e6cb7d1aff61607d16a2e1fdf62f3ca31e2177d1958a6eaa1a7b7bea203041c8
MD5 99cd559875c8a778082bb37f3ceb4394
BLAKE2b-256 0bb5996bf577765ce02c9a02817b2aa0a4c69422ad7d720326f405f7816a6128

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