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 hashes)

Uploaded Source

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