Tutorial 3

Class Organization

Labs/Assignments

** Tutorial 4 ** Tutorial 6 ** Tutorial 7

** Assignment 2

sidehead Old Pages (2022) * Tutorials ** Tutorial 1 ** Tutorial 2 ** Tutorial 3 and 4 ** Tutorial 5 ** Tutorial 6 * Assignments Overview ** Assignment 0 ** Assignment 1 ** Assignment 2 ** Assignment 3 ** Assignment 4

right edit SideBar

Tutorial 3

Tutorial: Data Visualization with Altair

Teacher: Natkamon Tovanich

We will create data visualization charts with the Altair library in Python. Altair is a powerful library that allows you to create various types of charts from the grammar of graphics.

Before the class

  1. In this tutorial, you can choose whether to use Google Colaboratory or install Anaconda and Jupyter Notebook.
  2. In case you use Jupyter Notebook on your local machine, you need to install the Altair library.

Part 1: Basic Charts

  • The student notebook for this tutorial is available for download here.
    • Click File > Save a Copy in Drive to clone the tutorial notebook into your Colab Notebooks.
    • Click File > Download > Download .ipynb to download the notebook on your local computer.
  • The solution will be posted here after the class.

Part 2: Selection and Interaction

In this tutorial, we will continue using the Altair library to add interactions (e.g., binding, selection, and condition) to charts.

  • The student notebook is available for download here.
  • The solution will be posted here after the class.

Acknowledgment: The tutorials are based on Exploratory Data Visualization with Altair tutorial at PyCon 2018 by Jake Vanderplas and Eitan Lees and Visualization Curriculum from the University of Washington.

Recent Changes (All) | Edit SideBar Page last modified on February 10, 2024, at 04:59 PM Edit Page | Page History
Powered by PmWiki