No project description provided
Project description
spark-plot
- 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")
Project details
Release history Release notifications | RSS feed
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)