{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# heatmap" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This section describes various options available for plotting heatmaps in **fivecentplots**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "See the full API https://endangeredoxen.github.io/fivecentplots/0.6.0/api/heatmap.html#heatmap" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Setup" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Import packages:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import fivecentplots as fcp\n", "import pandas as pd\n", "from pathlib import Path" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Read some fake heatmap data filled with absolutely made-up basketball stats:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Player | \n", "Category | \n", "Average | \n", "
---|---|---|---|
0 | \n", "Lebron James | \n", "Points | \n", "27.5 | \n", "
1 | \n", "Lebron James | \n", "Assists | \n", "9.1 | \n", "
2 | \n", "Lebron James | \n", "Rebounds | \n", "8.6 | \n", "
3 | \n", "Lebron James | \n", "Blocks | \n", "0.9 | \n", "
4 | \n", "James Harden | \n", "Points | \n", "30.4 | \n", "