Appendix

About

This section is included to assist the readers to perform the activities in the book. It includes detailed steps that are to be performed by the readers to achieve the objectives of the activities.

1. Introduction to Visualization with Python – Basic and Customized Plotting

Activity 1: Analyzing Different Scenarios and Generating the Appropriate Visualization

Solution

  1. Download the dataset hosted on the book GitHub repository, and format it as a pandas DataFrame:

    # load necessary modules

    import pandas as pd

    import seaborn as sns

    from numpy import median, mean

  2. Read the dataset as a pandas DataFrame:

    # download file 'athlete_events.csv' from course GitHub repository: https://github.com/TrainingByPackt/Interactive-Data-Visualization-with-Python/datasets ...

Get Interactive Data Visualization with Python - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.