{ "cells": [ { "cell_type": "markdown", "metadata": { "button": false, "new_sheet": false, "run_control": { "read_only": false } }, "source": [ "# Histogram\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", "45 | \n", "67 | \n", "123 | \n", "178 | \n", "154 | \n", "182 | \n", "287 | \n", "243 | \n", "267 | \n", "678 | \n", "
B | \n", "23 | \n", "178 | \n", "154 | \n", "182 | \n", "285 | \n", "213 | \n", "267 | \n", "678 | \n", "244 | \n", "365 | \n", "
C | \n", "354 | \n", "390 | \n", "489 | \n", "428 | \n", "401 | \n", "502 | \n", "528 | \n", "529 | \n", "561 | \n", "865 | \n", "