Chris Walshaw
 Teaching
 Research
 Enterprise & KE
 Music
 Contact

Visualisation with Python

Welcome to Data Visualisation with Python, a 10-topic course in the concepts of data visualisation with the popular programming language Python.

Each topic has a YouTube playlist with 6-10 short videos (roughly an hour long) accompanied by a zip file of downloadable standalone examples. The examples all use Python but the concepts can be used with any visualisation toolkit.

Obviously you can dip in and out of the videos, using the lists of contents below as an index, but if you want to take the whole course, I recommend watching one topic a week (or one a day if you are in a hurry) and then practising with the examples to build your skills up.

Please feel free to leave comments on the videos (questions or constructive criticism) and I will reply to you as soon as I get the chance. I also recommend subscribing to my YouTube channel for addition courses that I will be releasing.

Topic 01 Introduction

YouTube Introduction playlist:

  • Video 01-1 - Objectives & motivation: Objectives. What is visualisation? What does visualisation involve?
  • Video 01-2 - Visualisation examples: Early data visualisation. Infographics. Data explanation / presentation.
  • Video 01-3 - Visualisation vs statistics: Anscombe's quartet. Cairo's dataset. Visualisation technologies.
  • Video 01-4 - Initial exploration: The data. Getting started. Data description. Sorting.
  • Video 01-5 - Plotting, filtering & selection: Plotting. Column selection by name. Column filtering by name. Column selection by value.
  • Video 01-6 - Columns - segmentation, augmentation, manipulation: Column segmentation by value. Column augmentation. Column manipulation.
  • Video 01-7 - Row manipulation & Summary: Row selection by range. Transposition. Data conclusions. Summary.

Downloadable Introduction examples

Topic 02 Proportion

YouTube Proportion playlist:

  • Video 02-1 - Objectives & motivation: Objectives. Common features. Data.
  • Video 02-2 - Bar charts - segmentation: Bar chart 01. Creating bar chart. Segmenting the data. Bar charts 02, 03, 04, 05 - segments.
  • Video 02-3 - Automatic categorisation: Categorised bar charts 06. Data wrangling. Plotting.
  • Video 02-4 - Bar chart improvements: Motivation. Colouring. Sorting. Grouping. Sorting & grouping. Bar chart guidelines.
  • Video 02-5 - Pie charts: Basic pie chart. Improvements - colouring, grouping. Sorting & grouping. Pie chart guidelines.
  • Video 02-6 - Summary: Data conclusions. Summary.

Downloadable Proportion examples

Topic 03 Time

YouTube Time playlist:

  • Video 03-1 - Objectives & motivation: Motivation / Objectives. Common features. Handling date / time. Data.
  • Video 03-2 - Line plots: Line plot 01. Segmentation. Line plot 02 - high volume. Line plot 03 axis zeroed.
  • Video 03-3 - Averaging: Averaging & trends. Resampling data. Overlaying line plots. Line plot 04 - averaged.
  • Video 03-4 - Rolling averages & trendlines: Rolling averages. Line plot 05 - rolling average. Trendlines. Line plot 06 - trend lines. Trendline code.
  • Video 03-5 - Exploring segments: Line plots 07 & 08 - medium volume. Line plots 09 & 10 - low/very low volume. Further explorations. Line plots 11 & 12 - monthly averages, cubic trendlines.
  • Video 03-6 - Stacked area plots: Stacked area plots. Area plot 13 - all. Area plot 14 - sorted. Area plot 15 - low volume.
  • Video 03-7 - Summary: Line / area plot guidelines. Data conclusions. Summary.

Downloadable Time examples

Topic 04 Correlation

YouTube Correlation playlist:

  • Video 04-1 - Objectives & motivation: Motivation / Objectives. Common features.
  • Video 04-2 - Definition & scatter plots: Correlation. Scatter plots. Picking pairs. Scatter plot 01 - high volume.
  • Video 04-3 - Subplots & faceting: Definition. Subplot code. Scatter plots 02 - medium volume. Scatter plots 03 - low volume. Interpretation.
  • Video 04-4 - Heat maps: Correlation coefficient. Heat maps. Heat map 04 - all. Heat map 05 - selected.
  • Video 04-5 - Further investigations: Scatter plots 07 - all correlations. Scatter plots 08 - positive correlations. Scatter plots 08 - negative correlations. Line plot 09 - positive. Line plot 10 - negative.
  • Video 04-6 - Product comparisons: Summary data. Scatter plot 11 - marketing/sales. Heat map 12 - summary. Scatter plot 14 - price/cost.
  • Video 04-7 - Segmentation: Segmentation. Scatter plot 14 - price/cost. Data conclusions. Summary.

Downloadable Correlation examples

Topic 05 Distribution

YouTube Distribution playlist:

  • Video 05-1 - Objectives & motivation: Motivation / Objectives. Common features.
  • Video 05-2 - Distributions & histograms: Distribution. Deviation / Outliers. Histograms. Choosing the number of bins.
  • Video 05-3 - Product histograms: Histogram 01 - total sales. Histogram 02 - product subplots. Histogram 03 - high volume.
  • Video 05-4 - Box plots: Box plots. Box plot 04 - high volume. Box plots 05, 06 & 07 - medium, low & very low volume.
  • Video 05-5 - Seasonal variations & autocorrelation: Seasonal variation. Line plot 08 - product subplots. Autocorrelation plots. Autocorrelation 09 - example.
  • Video 05-6 - Autocorrelation investigation: Subplot code. Autocorrelation 10 - product subplots. Autocorrelation 11 - selected plots.
  • Video 05-7 - Line plot decomposition: Line plot decomposition 12 - selected quarterly. Line plot decomposition 13 - selected weekly.
  • Video 05-8 - Outliers & annotation: Labelling - scatter plot 14. Outliers - scatter plot 15. Data conclusions. Summary.

Downloadable Distribution examples

Topic 06 Dimension

YouTube Dimension playlist:

  • Video 06-1 - Objectives & motivation: Motivation / Objectives. Common features.
  • Video 06-2 - Definition: Dimension. Bar chart 01 - all attributes. Bar chart 02 - all attributes subplots.
  • Video 06-3 - Normalisation: Normalisation. Comparative bar chart 03 - high volume.
  • Video 06-4 - Radar plots: Radar / spider plots. Radar plot 04 - all subplots. Radar plot 05 - high volume subplots. Radar plot 06 - overlaid.
  • Video 06-5 - Correlograms: Correlogram / pair plot. Correlogram 07 - all attributes.
  • Video 06-6 - Bubble plots - price/cost/profit: Bubble plots. Bubble plot 08 - price/cost/profit. Observations.
  • Video 06-7 - Bubble plots - sales: Bubble plot 09 - price/cost/sales. Bubble plot 10 - marketing/sales/profit. Observations.
  • Video 06-8 - Bubble plots - profit/advertising/sales: Advertising. Bubble plot 11 - profit/advertising/sales. Observations. Bubble plot 12 - log scale. Data conclusions. Summary.

Downloadable Dimension examples

Topic 07 Interaction

YouTube Interaction playlist:

  • Video 07-1 - Objectives & motivation: Motivation / Objectives. Interaction trade-off. hvPlot / HoloViews / Bokeh. Common features.
  • Video 07-2 - Line plots: Line plot 01 - all products. Line plot 02 - high volume. Line plot 03 - subplots. Line plot 04 - stacked subplots. Line plot 05 - tools.
  • Video 07-3 - Histograms & heat maps: Histogram 06 - high volume. Histogram 07 - custom bins. Heat map correlation.
  • Video 07-4 - Composing scatter plots: Composing plots. Scatter plots 09 - selected correlations. Scatter plot 10 - overlaid correlations.
  • Video 07-5 - Bubble plots: Bubble plots. Bubble plot 11 - profit/advertising/sales. Bubble plot 12 - limits. Bubble plot 13 - marketing/sales/profit. Bubble plot 14 - limits.
  • Video 07-6 - Notebooks: Changes for notebooks. Summary.

Downloadable Interaction examples

Topic 08 Dashboards

YouTube Dashboards playlist:

  • Video 08-1 - Objectives & motivation: Motivation / Objectives. What is a dashboard? Dashboard code components.
  • Video 08-2 - Time series: Time series 01 - all line plots.
  • Video 08-3 - Volume selector: Time series 02 - volume selector.
  • Video 08-4 - Sliders: Time series 03 - averaging slider. Time series 04 - date slider.
  • Video 08-5 - Correlation - scatter plots: Correlation 05 - scatter plot selector.
  • Video 08-6 - Correlation - heat map: Correlation 06 - heat map. Correlation 07 - date slider.
  • Video 08-7 - Variables - bubble plot: Variables 08 - bubble plot. Variables 09 - bubble scaling.
  • Video 08-8 - Dashboard: Dashboard 10 - putting it all together. Deploying. Summary.
  • Video 08-9 - Using Colab: Supplementary video: Jupyter / hvplot problems. Anaconda. Colab.

Downloadable Dashboards examples

Topic 09 Clustering

YouTube Clustering playlist:

  • Video 09-1 - Objectives & motivation: Motivation / Objectives. What is clustering?
  • Video 09-2 - k-means clustering: k-means clustering. Scatter plot 01 - clustering marketing/sales. Interpretation.
  • Video 09-3 - How many clusters (elbow/silhouette methods): How many clusters. Line plot 02 - elbow/silhouette methods. Scatter plot 01 revisited. Interpretation.
  • Video 09-4 - Customer profiles: Customer segmentation. Box plot 03 - spending income. Histograms 04, 05 & 06 - age, spending, income. 3d scatter plot 07 - profiles.
  • Video 09-5 - Customer clustering: Line plot 08 - clusterings. 3d scatter plot 09 - clustering. Interpretation - profiles.
  • Video 09-6 - Product clustering by rating: Radar plot 10 - ratings subplots. Line plot 11 - clusterings. Scatterplot 12 - clusters. Summary.

Downloadable Clustering examples

Topic 10 Reduction

YouTube Reduction playlist:

  • Video 10-1 - Objectives & motivation: Motivation / Objectives. What is dimension reduction?
  • Video 10-2 - Ratings: Radar plot 01 - ratings subplots. Bar chart 02 - sorted ratings.
  • Video 10-3 - tSNE - perplexity: tSNE 03 - ratings default. Perplexity. tSNE 04 - varying perplexity. Interpreting tSNE results.
  • Video 10-4 - tSNE - preliminary investigation: Understanding tSNE. tSNE 05 - low ratings. tSNE 06 - high ratings. tSNE 07 - low mid ratings.
  • Video 10-5 - tSNE + clustering: tSNE 08 - clustered ratings, code & interpretation.
  • Video 10-6 - Ratings interpretation: Radar plots 09 & 10 - low / high ratings. Rating plots 11 & 12 - unidentified clusters. Ratings clusters interpretation.
  • Video 10-7 - Product data investigation: tSNE 13 - product data. Radar plots 14 & 15 - high / medium volume. Radar plots 16 & 17 - high / low marketing. Data conclusions. Summary.

Downloadable Reduction examples


©