{ "cells": [ { "cell_type": "markdown", "metadata": { "button": false, "new_sheet": false, "run_control": { "read_only": false } }, "source": [ "# Area Plots\n", "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's import all the dependencies first." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "button": false, "new_sheet": false, "run_control": { "read_only": false }, "scrolled": false }, "outputs": [], "source": [ "# primary data structure library\n", "import pandas as pd \n", "\n", "# primary plotting library\n", "import matplotlib as mpl \n", "\n", "# importing the pyplot layer of matplotlib for easy usage\n", "import matplotlib.pyplot as plt \n", "\n", "# optional: for ggplot-like style of plots\n", "mpl.style.use(['ggplot']) \n", "\n", "# using the inline backend\n", "%matplotlib inline " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we'll create the DataFrame." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | 1 | \n", "2 | \n", "3 | \n", "4 | \n", "5 | \n", "6 | \n", "7 | \n", "8 | \n", "9 | \n", "10 | \n", "
---|---|---|---|---|---|---|---|---|---|---|
A | \n", "1 | \n", "3 | \n", "2 | \n", "6 | \n", "5 | \n", "7 | \n", "4 | \n", "8 | \n", "9 | \n", "10 | \n", "
B | \n", "0 | \n", "2 | \n", "3 | \n", "1 | \n", "4 | \n", "8 | \n", "6 | \n", "7 | \n", "9 | \n", "8 | \n", "