{ "cells": [ { "cell_type": "markdown", "id": "05c0a10d", "metadata": {}, "source": [ "## Chapter 6 Altair Data Visualization\n", "Exercise 3" ] }, { "cell_type": "code", "execution_count": 1, "id": "02b4d349", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "from pathlib import Path\n", "import altair as alt" ] }, { "cell_type": "code", "execution_count": 2, "id": "8b2b4ef8", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | Name | \n", "Author | \n", "User Rating | \n", "Reviews | \n", "Price | \n", "Year | \n", "Genre | \n", "
|---|---|---|---|---|---|---|---|
| 0 | \n", "10-Day Green Smoothie Cleanse | \n", "JJ Smith | \n", "4.7 | \n", "17350.0 | \n", "8.0 | \n", "2016.0 | \n", "Non Fiction | \n", "
| 1 | \n", "11/22/63: A Novel | \n", "Stephen King | \n", "4.6 | \n", "2052.0 | \n", "22.0 | \n", "2011.0 | \n", "Fiction | \n", "
| 2 | \n", "12 Rules for Life: An Antidote to Chaos | \n", "Jordan B. Peterson | \n", "4.7 | \n", "18979.0 | \n", "15.0 | \n", "2018.0 | \n", "Non Fiction | \n", "
| 3 | \n", "1984 (Signet Classics) | \n", "George Orwell | \n", "4.7 | \n", "21424.0 | \n", "6.0 | \n", "2017.0 | \n", "Fiction | \n", "
| 4 | \n", "5,000 Awesome Facts (About Everything!) (Natio... | \n", "National Geographic Kids | \n", "4.8 | \n", "7665.0 | \n", "12.0 | \n", "2019.0 | \n", "Non Fiction | \n", "