Python Data Visualisation
Python Data Visualisation
Commercially focused
SaaS to increase revenue
and reduce costs
Iteration speed
Un-intrusive
Flexible
Aesthetically pleasing
edgetier Chart Choice
COMPLEX DECISIONS SIMPLIFIED
Source: www.extremepresentation.com
edgetier
Chart Choice – Fearsome Foursome
COMPLEX DECISIONS SIMPLIFIED
Special Mentions
BARPLOT HISTOGRAM
BARPLOT SCATTER PLOT LINE CHART
Represents the BOXPLOT Represents
An accurate SANKEY
the Show CHOROPLETH
the Shows the
value of entities
Summarizevalue
thegraphicalDIAGRAM relationship MAP
of entities evolution of
using bar of representation
distribution using bar
of of of flows
Showing between
with 2 numeric
Display annumeric variables.
various length. the
various
distribution
numeric variables length.of links variables.
smooth aggregated value for
numeric data. each region of a map
Icons: www.data-to-viz.com
edgetier
Data Visualisation in Python
COMPLEX DECISIONS SIMPLIFIED
Interactive
environment
Data
Manipulation
Python Visualisation Library
Imports on Matplotlib
Top of notebook – inline
vs notebook style.
seaborn
seaborn
edgetier
Prettier Pandas Plots
COMPLEX DECISIONS SIMPLIFIED
seaborn
seaborn
seaborn
seaborn
seaborn
seaborn
All libraries
good at
univariate
distribution
visualisations.
edgetier Histograms
COMPLEX DECISIONS SIMPLIFIED
seaborn
edgetier Histograms
COMPLEX DECISIONS SIMPLIFIED
seaborn
Seaborn/Altair:
Operate directly on seaborn
raw data
edgetier More Options!
COMPLEX DECISIONS SIMPLIFIED
Geospatial Viz
Folium: Generate interactive
maps using leaflet.js
Matplotlib: Basemap plugin
Interactive Plots
Bokeh: Makes visualisations for
web browser interaction.
Plotly: Online visualisations –
runs by default in cloud
edgetier
What to Avoid – Angles?
COMPLEX DECISIONS SIMPLIFIED
Pie Charts: Radial angle for comparison. Humans are very bad at
accurate radial comparisons – we’ve evolved for speedy length /
distance comparisons.
https://blog.funnel.io/why-we-dont-use-pie-charts-and-some-tips-on-
better-data-visualizations
edgetier
What to Avoid – Angles?
COMPLEX DECISIONS SIMPLIFIED
Pie Charts: Radial angle for comparison. Humans are very bad at
accurate radial comparisons – we’ve evolved for speedy length /
distance comparisons.
https://blog.funnel.io/why-we-dont-use-pie-charts-and-some-tips-on-
better-data-visualizations
edgetier
What to Avoid – Area?
COMPLEX DECISIONS SIMPLIFIED
Area: We’re bad at area – rank these bubbles by area, and compare
them relative to each other.
edgetier
What to Avoid – Area?
COMPLEX DECISIONS SIMPLIFIED
Area: We’re bad at area – rank these bubbles by area, and compare
them relative to each other.
https://www.data-to-viz.com/caveat/area_hard.html
edgetier
What to Avoid – 3d?
COMPLEX DECISIONS SIMPLIFIED
Resources
Tour of Python’s Data Landscape
https://dsaber.com/2016/10/02/a-dramatic-tour-through-pythons-data-
visualization-landscape-including-ggplot-and-altair/