You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Data-Science-For-Beginners/3-Data-Visualization/12-visualization-relationships/solution/notebook.ipynb

378 lines
1.8 MiB

{
"cells": [
{
"cell_type": "markdown",
"source": [
"# Visualizing Honey Production 🍯 🐝"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 177,
"source": [
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"honey = pd.read_csv('../../../data/honey.csv')\n",
"honey.head()"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" state numcol yieldpercol totalprod stocks priceperlb \\\n",
"0 AL 16000.0 71 1136000.0 159000.0 0.72 \n",
"1 AZ 55000.0 60 3300000.0 1485000.0 0.64 \n",
"2 AR 53000.0 65 3445000.0 1688000.0 0.59 \n",
"3 CA 450000.0 83 37350000.0 12326000.0 0.62 \n",
"4 CO 27000.0 72 1944000.0 1594000.0 0.70 \n",
"\n",
" prodvalue year \n",
"0 818000.0 1998 \n",
"1 2112000.0 1998 \n",
"2 2033000.0 1998 \n",
"3 23157000.0 1998 \n",
"4 1361000.0 1998 "
],
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>state</th>\n",
" <th>numcol</th>\n",
" <th>yieldpercol</th>\n",
" <th>totalprod</th>\n",
" <th>stocks</th>\n",
" <th>priceperlb</th>\n",
" <th>prodvalue</th>\n",
" <th>year</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>AL</td>\n",
" <td>16000.0</td>\n",
" <td>71</td>\n",
" <td>1136000.0</td>\n",
" <td>159000.0</td>\n",
" <td>0.72</td>\n",
" <td>818000.0</td>\n",
" <td>1998</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>AZ</td>\n",
" <td>55000.0</td>\n",
" <td>60</td>\n",
" <td>3300000.0</td>\n",
" <td>1485000.0</td>\n",
" <td>0.64</td>\n",
" <td>2112000.0</td>\n",
" <td>1998</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>AR</td>\n",
" <td>53000.0</td>\n",
" <td>65</td>\n",
" <td>3445000.0</td>\n",
" <td>1688000.0</td>\n",
" <td>0.59</td>\n",
" <td>2033000.0</td>\n",
" <td>1998</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>CA</td>\n",
" <td>450000.0</td>\n",
" <td>83</td>\n",
" <td>37350000.0</td>\n",
" <td>12326000.0</td>\n",
" <td>0.62</td>\n",
" <td>23157000.0</td>\n",
" <td>1998</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>CO</td>\n",
" <td>27000.0</td>\n",
" <td>72</td>\n",
" <td>1944000.0</td>\n",
" <td>1594000.0</td>\n",
" <td>0.70</td>\n",
" <td>1361000.0</td>\n",
" <td>1998</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
]
},
"metadata": {},
"execution_count": 177
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Use a scatterplot to show the relationship between a state and its price per pound for local honey"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 178,
"source": [
"sns.relplot(x=\"priceperlb\", y=\"state\", data=honey, height=15, aspect=.5);\n"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 540x1080 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"1083.514219pt\" version=\"1.1\" viewBox=\"0 0 543.424688 1083.514219\" width=\"543.424688pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 1083.514219 \nL 543.424688 1083.514219 \nL 543.424688 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 49.394687 1041.78 \nL 536.224687 1041.78 \nL 536.224687 7.2 \nL 49.394687 7.2 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p467e379e52)\" d=\"M 73.553863 1041.78 \nL 73.553863 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 0.5 -->\n <defs>\n <path d=\"M 4.15625 35.296875 \nQ 4.15625 48 6.765625 55.734375 \nQ 9.375 63.484375 14.515625 67.671875 \nQ 19.671875 71.875 27.484375 71.875 \nQ 33.25 71.875 37.59375 69.546875 \nQ 41.9375 67.234375 44.765625 62.859375 \nQ 47.609375 58.5 49.21875 52.21875 \nQ 50.828125 45.953125 50.828125 35.296875 \nQ 50.828125 22.703125 48.234375 14.96875 \nQ 45.65625 7.234375 40.5 3 \nQ 35.359375 -1.21875 27.484375 -1.21875 \nQ 17.140625 -1.21875 11.234375 6.203125 \nQ 4.15625 15.140625 4.15625 35.296875 \nz\nM 13.1875 35.296875 \nQ 13.1875 17.671875 17.3125 11.828125 \nQ 21.4375 6 27.484375 6 \nQ 33.546875 6 37.671875 11.859375 \nQ 41.796875 17.71875 41.796875 35.296875 \nQ 41.796875 52.984375 37.671875 58.78125 \nQ 33.546875 64.59375 27.390625 64.59375 \nQ 21.34375 64.59375 17.71875 59.46875 \nQ 13.1875 52.9375 13.1875 35.296875 \nz\n\" id=\"ArialMT-48\"/>\n <path d=\"M 9.078125 0 \nL 9.078125 10.015625 \nL 19.09375 10.015625 \nL 19.09375 0 \nz\n\" id=\"ArialMT-46\"/>\n <path d=\"M 4.15625 18.75 \nL 13.375 19.53125 \nQ 14.40625 12.796875 18.140625 9.390625 \nQ 21.875 6 27.15625 6 \nQ 33.5 6 37.890625 10.78125 \nQ 42.28125 15.578125 42.28125 23.484375 \nQ 42.28125 31 38.0625 35.34375 \nQ 33.84375 39.703125 27 39.703125 \nQ 22.75 39.703125 19.328125 37.765625 \nQ 15.921875 35.84375 13.96875 32.765625 \nL 5.71875 33.84375 \nL 12.640625 70.609375 \nL 48.25 70.609375 \nL 48.25 62.203125 \nL 19.671875 62.203125 \nL 15.828125 42.96875 \nQ 22.265625 47.46875 29.34375 47.46875 \nQ 38.71875 47.46875 45.15625 40.96875 \nQ 51.609375 34.46875 51.609375 24.265625 \nQ 51.609375 14.546875 45.953125 7.46875 \nQ 39.0625 -1.21875 27.15625 -1.21875 \nQ 17.390625 -1.21875 11.203125 4.25 \nQ 5.03125 9.71875 4.15625 18.75 \nz\n\" id=\"ArialMT-53\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(65.908863 1059.153594)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-48\"/>\n <use x=\"55.615234\" xlink:href=\"#ArialMT-46\"/>\n <use x=\"83.398438\" xlink:href=\"#ArialMT-53\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_2\">\n <path clip-path=\"url(#p467e379e52)\" d=\"M 133.78898 1041.78 \nL 133.78898 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_2\">\n <!-- 1.0 -->\n <defs>\n <path d=\"M 37.25 0 \nL 28.46875 0 \nL 28.46875 56 \nQ 25.296875 52.984375 20.140625 49.953125 \nQ 14.984375 46.921875 10.890625 45.40625 \nL 10.890625 53.90625 \nQ 18.265625 57.375 23.78125 62.296875 \nQ 29.296875 67.234375 31.59375 71.875 \nL 37.25 71.875 \nz\n\" id=\"ArialMT-49\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(126.14398 1059.153594)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-49\"/>\n <use x=\"55.615234\" xlink:href=\"#ArialMT-46\"/>\n <use x=\"83.398438
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh4AAAQ6CAYAAAALLnRQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAgAElEQVR4nOzdfXBb5Z03/K8sybJlSXEsxPOQGmdSUztpcVHpS9LQDMWNG5IS6PrecQzbMHRaqKGtS6aZNrSUDrDTtLOFUkO3uVu27UK5cdytbxKWlxAasjEUUhYwOI2LSWDx45qAorwcS4qlY0nPH46EZetI50jnXHr7fmZ2iM65Xn6/65Kln8853pri8XgcRERERAJUFToAIiIiqhwsPIiIiEgYFh5EREQkDAsPIiIiEoaFBxEREQnDwoOIiIiEsRQ6AD34/QHEYsb9VfDixXacPBkybPxiw3zLW6XlC1Rezsy3vJVCvh6PU/Ecr3ioYLGYCx2CUMy3vFVavkDl5cx8y1up58vCg4iIiIRh4UFERETCsPAgIiIiYVh4EBERkTAsPIiIiEgYFh5EREQkDAsPIiIiEoaFBxEREQnDwoOIiIiEYeFBREREwrDwICIiImFYeBAREZEwLDyIiIhIGBYeREREJAwLDyIiIhKGhQcREREJw8KDiIiIhGHhQURERMKw8CAiIiJhWHgQERGRMCw8iIiISBgWHkRERCQMCw8iIiIShoUHERERCcPC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xi1QF+AMRjE1K8Acjmd+Z2dZT6bye+yBqT/UwL9ZYLF7oiIioggm
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Show this relationship plus a new yellow-colored scatterplot with hue determined by year."
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 179,
"source": [
"sns.relplot(x=\"priceperlb\", y=\"state\", hue=\"year\", palette=\"YlOrBr\", data=honey, height=15, aspect=.5);\n"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 604.1x1080 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"1083.514219pt\" version=\"1.1\" viewBox=\"0 0 610.211612 1083.514219\" width=\"610.211612pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 1083.514219 \nL 610.211612 1083.514219 \nL 610.211612 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 49.394688 1041.78 \nL 538.370612 1041.78 \nL 538.370612 7.2 \nL 49.394688 7.2 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p514b8fa518)\" d=\"M 73.660356 1041.78 \nL 73.660356 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 0.5 -->\n <defs>\n <path d=\"M 4.15625 35.296875 \nQ 4.15625 48 6.765625 55.734375 \nQ 9.375 63.484375 14.515625 67.671875 \nQ 19.671875 71.875 27.484375 71.875 \nQ 33.25 71.875 37.59375 69.546875 \nQ 41.9375 67.234375 44.765625 62.859375 \nQ 47.609375 58.5 49.21875 52.21875 \nQ 50.828125 45.953125 50.828125 35.296875 \nQ 50.828125 22.703125 48.234375 14.96875 \nQ 45.65625 7.234375 40.5 3 \nQ 35.359375 -1.21875 27.484375 -1.21875 \nQ 17.140625 -1.21875 11.234375 6.203125 \nQ 4.15625 15.140625 4.15625 35.296875 \nz\nM 13.1875 35.296875 \nQ 13.1875 17.671875 17.3125 11.828125 \nQ 21.4375 6 27.484375 6 \nQ 33.546875 6 37.671875 11.859375 \nQ 41.796875 17.71875 41.796875 35.296875 \nQ 41.796875 52.984375 37.671875 58.78125 \nQ 33.546875 64.59375 27.390625 64.59375 \nQ 21.34375 64.59375 17.71875 59.46875 \nQ 13.1875 52.9375 13.1875 35.296875 \nz\n\" id=\"ArialMT-48\"/>\n <path d=\"M 9.078125 0 \nL 9.078125 10.015625 \nL 19.09375 10.015625 \nL 19.09375 0 \nz\n\" id=\"ArialMT-46\"/>\n <path d=\"M 4.15625 18.75 \nL 13.375 19.53125 \nQ 14.40625 12.796875 18.140625 9.390625 \nQ 21.875 6 27.15625 6 \nQ 33.5 6 37.890625 10.78125 \nQ 42.28125 15.578125 42.28125 23.484375 \nQ 42.28125 31 38.0625 35.34375 \nQ 33.84375 39.703125 27 39.703125 \nQ 22.75 39.703125 19.328125 37.765625 \nQ 15.921875 35.84375 13.96875 32.765625 \nL 5.71875 33.84375 \nL 12.640625 70.609375 \nL 48.25 70.609375 \nL 48.25 62.203125 \nL 19.671875 62.203125 \nL 15.828125 42.96875 \nQ 22.265625 47.46875 29.34375 47.46875 \nQ 38.71875 47.46875 45.15625 40.96875 \nQ 51.609375 34.46875 51.609375 24.265625 \nQ 51.609375 14.546875 45.953125 7.46875 \nQ 39.0625 -1.21875 27.15625 -1.21875 \nQ 17.390625 -1.21875 11.203125 4.25 \nQ 5.03125 9.71875 4.15625 18.75 \nz\n\" id=\"ArialMT-53\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(66.015356 1059.153594)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-48\"/>\n <use x=\"55.615234\" xlink:href=\"#ArialMT-46\"/>\n <use x=\"83.398438\" xlink:href=\"#ArialMT-53\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_2\">\n <path clip-path=\"url(#p514b8fa518)\" d=\"M 134.160986 1041.78 \nL 134.160986 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_2\">\n <!-- 1.0 -->\n <defs>\n <path d=\"M 37.25 0 \nL 28.46875 0 \nL 28.46875 56 \nQ 25.296875 52.984375 20.140625 49.953125 \nQ 14.984375 46.921875 10.890625 45.40625 \nL 10.890625 53.90625 \nQ 18.265625 57.375 23.78125 62.296875 \nQ 29.296875 67.234375 31.59375 71.875 \nL 37.25 71.875 \nz\n\" id=\"ArialMT-49\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(126.515986 1059.153594)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-49\"/>\n <use x=\"55.615234\" xlink:href=\"#ArialMT-46\"/>\n <use x=\"83.398
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmEAAAQ6CAYAAAAMbKpFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAgAElEQVR4nOzdeXxcdb3/8df3bLNkJkvTJN0X2tKFFmWxRUDRWihCWfTqVVCWC6KCivQnSlHcl+q9gl5Q0UuvcHGrV60FLi4IiCwCLVuhtKW0dEvbNHsms8855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QogiIyFMCCGEEKIAJIQJIYQQQhSAhDAhhBBCiAKQECaEEEIIUQASwoQQQgghCkBCmBBCCCFEAUgIE0IIIYQoAAlhQgghhBAFICFMCCGEEKIAJIQJIYQQQhSAhDAhhBBCiAKQECaEEEIIUQDWcC+4efNmLrjgAm6//XYWL14MwGWXXUYsFus8Zt++fcyaNYt77rlnuMsbFEopQiEwDI3nWVgWeJ4mlfLQuqfjIeS42LYHyiKTM0in1SDVAkGvFcNNkgtUktWBfp1vGBByG1H4pKwqPF9hmRC0kmgUqWwIx0hj+e24RglpLzzgWoN+O0ZsNzoQJVMyHt/vuZ+QmcRQGXI6Qsa1+zS36afR7fWoQAQ/NKrH54H2fWgvh1k+Fu17ZFr3YTpBrGg1uscTBpmfI9WyD9N2CJbX4PvDsKYQQoiCGfYQtmrVKhYvXszKlSs7Q9gvfvGLzsd37tzJhz/8YT796U8Pd2mDwrKgNJLBZA/gou1SlDkKVIZAoJS2Ni8vXBg
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Try this plot one more time, this time showing the price change by size of the dot in the scatterplot"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 180,
"source": [
"sns.relplot(x=\"priceperlb\", y=\"state\", size=\"year\", data=honey, height=15, aspect=.5);\n"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 604.1x1080 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"1083.514219pt\" version=\"1.1\" viewBox=\"0 0 610.211612 1083.514219\" width=\"610.211612pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 1083.514219 \nL 610.211612 1083.514219 \nL 610.211612 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 49.394688 1041.78 \nL 538.370612 1041.78 \nL 538.370612 7.2 \nL 49.394688 7.2 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p9aa3aad262)\" d=\"M 73.476532 1041.78 \nL 73.476532 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 0.5 -->\n <defs>\n <path d=\"M 4.15625 35.296875 \nQ 4.15625 48 6.765625 55.734375 \nQ 9.375 63.484375 14.515625 67.671875 \nQ 19.671875 71.875 27.484375 71.875 \nQ 33.25 71.875 37.59375 69.546875 \nQ 41.9375 67.234375 44.765625 62.859375 \nQ 47.609375 58.5 49.21875 52.21875 \nQ 50.828125 45.953125 50.828125 35.296875 \nQ 50.828125 22.703125 48.234375 14.96875 \nQ 45.65625 7.234375 40.5 3 \nQ 35.359375 -1.21875 27.484375 -1.21875 \nQ 17.140625 -1.21875 11.234375 6.203125 \nQ 4.15625 15.140625 4.15625 35.296875 \nz\nM 13.1875 35.296875 \nQ 13.1875 17.671875 17.3125 11.828125 \nQ 21.4375 6 27.484375 6 \nQ 33.546875 6 37.671875 11.859375 \nQ 41.796875 17.71875 41.796875 35.296875 \nQ 41.796875 52.984375 37.671875 58.78125 \nQ 33.546875 64.59375 27.390625 64.59375 \nQ 21.34375 64.59375 17.71875 59.46875 \nQ 13.1875 52.9375 13.1875 35.296875 \nz\n\" id=\"ArialMT-48\"/>\n <path d=\"M 9.078125 0 \nL 9.078125 10.015625 \nL 19.09375 10.015625 \nL 19.09375 0 \nz\n\" id=\"ArialMT-46\"/>\n <path d=\"M 4.15625 18.75 \nL 13.375 19.53125 \nQ 14.40625 12.796875 18.140625 9.390625 \nQ 21.875 6 27.15625 6 \nQ 33.5 6 37.890625 10.78125 \nQ 42.28125 15.578125 42.28125 23.484375 \nQ 42.28125 31 38.0625 35.34375 \nQ 33.84375 39.703125 27 39.703125 \nQ 22.75 39.703125 19.328125 37.765625 \nQ 15.921875 35.84375 13.96875 32.765625 \nL 5.71875 33.84375 \nL 12.640625 70.609375 \nL 48.25 70.609375 \nL 48.25 62.203125 \nL 19.671875 62.203125 \nL 15.828125 42.96875 \nQ 22.265625 47.46875 29.34375 47.46875 \nQ 38.71875 47.46875 45.15625 40.96875 \nQ 51.609375 34.46875 51.609375 24.265625 \nQ 51.609375 14.546875 45.953125 7.46875 \nQ 39.0625 -1.21875 27.15625 -1.21875 \nQ 17.390625 -1.21875 11.203125 4.25 \nQ 5.03125 9.71875 4.15625 18.75 \nz\n\" id=\"ArialMT-53\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(65.831532 1059.153594)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-48\"/>\n <use x=\"55.615234\" xlink:href=\"#ArialMT-46\"/>\n <use x=\"83.398438\" xlink:href=\"#ArialMT-53\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_2\">\n <path clip-path=\"url(#p9aa3aad262)\" d=\"M 133.955336 1041.78 \nL 133.955336 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_2\">\n <!-- 1.0 -->\n <defs>\n <path d=\"M 37.25 0 \nL 28.46875 0 \nL 28.46875 56 \nQ 25.296875 52.984375 20.140625 49.953125 \nQ 14.984375 46.921875 10.890625 45.40625 \nL 10.890625 53.90625 \nQ 18.265625 57.375 23.78125 62.296875 \nQ 29.296875 67.234375 31.59375 71.875 \nL 37.25 71.875 \nz\n\" id=\"ArialMT-49\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(126.310336 1059.153594)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-49\"/>\n <use x=\"55.615234\" xlink:href=\"#ArialMT-46\"/>\n <use x=\"83.398
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmEAAAQ6CAYAAAAMbKpFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAgAElEQVR4nOzdeXhc5X33//eZGc0+o3UkS5Zky5J3G2zA7EvjsLgEAyFpE8IS2rRPFhIu3Ick0ObKlbZ5QtIG8iu0SVpoDE4ChgQHzBqz2Nhm8W5sWd6179JomX095/eH7MFjjWTJljSS5/v6B3Sf7f6eGfl8dJ/7zCiapmkIIYQQQogJpUt3B4QQQgghMpGEMCGEEEKINJAQJoQQQgiRBhLChBBCCCHSQEKYEEIIIUQaSAgTQgghhEgDQ7o7MBbcbh+qOn6ftJGba6W3NzBu+59spN7zX6bVnGn1QubVnGn1wtSo2eVypLsLk5qMhI2AwaBPdxcmlNR7/su0mjOtXsi8mjOtXsjMms83EsKEEEIIIdJAQpgQQgghRBpICBNCCCGESAMJYUIIIYQQaSAhTAghhBAiDSSECSGEEEKkgYQwIYQQQog0kBAmhBBCCJEGEsKEEEIIIdJAQpgQQgghRBpICBNCCCGESAMJYUIIIYQQaSAhTAghhBAiDSSECSGEEEKkgYQwIYQQQog0kBAmhBBCCJEGEsKEEEIIIdJAQpgQQgghRBpICBNCCCGESAMJYUIIIYQQaSAhTAghhBAiDSSECSGEEEKkgYQwIYQQQog0kBAmhBBCCJEGEsKEEEIIIdJAQpgQQgghRBpICBNCCCGESAMJYUIIIYQQaSAhTAghhBAiDSSECSGEEEKkgYQwIYQQQog0kBAmhBBCCJEGEsKEEEIIIdJAQpgQQgghRBp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t7h43dvHqKh3cOiWXl84S+qmFF4dqONGtDU7aeuzUOew0x3X5A/bjxGMBwj127iyzfOxe0J4AvEWFJVwKxiR9Ik+tHq9ob5YH8b22s6mFOew2cvKqW0wJa0Tq8vwu/fPpyYZ2Uy6vnqX87nsvmuSTmhXdU03v+kjd++dSip/XNXVXCgtpv6toH3ptVsYNWXl1I5bWSjYJP9H+9TKQrsPd7Dk3/Yy6m/6nlOMw99ZSnTcizUd/h49Lc7BwW1ihInBTkWdtR0JNruvGEun72o5Jzea5PdVHuNz1Wm1QtTo2YJYcOb0BC2cuVKVq1axfLlyxNtbreb5cuXY7fb8fv9KKf8o7hnz54R7TddIex85XI5aOvwEIrEsZj06MfwQqUo4AnE8Aaj5NiNWE88jTjULcKzPYaqgW6YfcY1jVZ3gGA4RsX0HIyKNmbHHw+qptHWE6SuzYOmwYxiB9Pzrbg9YZo7fRgMOmZOc4z4Yxem6nu6xR3gSFMf/b4IJS4rc8pyyLEak5Zvq2nn4wPt2MxZXL+snBnTHBxs6GX/8W6K86xcNLeQqpLz96M8Tpqqr/HZyrR6YWrULCFseBMawsaLhLCxJfWe/87nmhVFIRpX0es+Hdd0uRz09PhQVTgP/skbkfP5NU4l0+qFqVGzhLDhpeVzwoQQYrxomoYhxShX/GwfuxVCiHEiX1skhBBCCJEGEsKEEEIIIdJAQpgQQgghRBpICBNCCCGESAMJYUIIIYQQaSAhTAghhBAiDSSECSGEEEKkgYQwIYQQQog0kBAmhBBCCJEGEsKEEEIIIdJAQpgQQgghRBrId0eKSUN34vv+NG3sv2Q5rmlEYiomgw6dMvh7BVVNo88fRaeDXJuJHm8YbyCCzZpFvsME4/y1gxoabT1B+nxh7JYsphfY0KfopxBCiPPHhIewI0eOsHLlSp544gluuukmAO655x48Hk9inY6ODub
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Explore some line charting options"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 181,
"source": [
"sns.relplot(x=\"year\", y=\"priceperlb\", kind=\"line\", data=honey);"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 360x360 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"363.514219pt\" version=\"1.1\" viewBox=\"0 0 363.361406 363.514219\" width=\"363.361406pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 363.514219 \nL 363.361406 363.514219 \nL 363.361406 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 53.081406 321.78 \nL 356.161406 321.78 \nL 356.161406 7.2 \nL 53.081406 7.2 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p6d3cc249e1)\" d=\"M 66.85777 321.78 \nL 66.85777 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 1998 -->\n <defs>\n <path d=\"M 37.25 0 \nL 28.46875 0 \nL 28.46875 56 \nQ 25.296875 52.984375 20.140625 49.953125 \nQ 14.984375 46.921875 10.890625 45.40625 \nL 10.890625 53.90625 \nQ 18.265625 57.375 23.78125 62.296875 \nQ 29.296875 67.234375 31.59375 71.875 \nL 37.25 71.875 \nz\n\" id=\"ArialMT-49\"/>\n <path d=\"M 5.46875 16.546875 \nL 13.921875 17.328125 \nQ 14.984375 11.375 18.015625 8.6875 \nQ 21.046875 6 25.78125 6 \nQ 29.828125 6 32.875 7.859375 \nQ 35.9375 9.71875 37.890625 12.8125 \nQ 39.84375 15.921875 41.15625 21.1875 \nQ 42.484375 26.46875 42.484375 31.9375 \nQ 42.484375 32.515625 42.4375 33.6875 \nQ 39.796875 29.5 35.234375 26.875 \nQ 30.671875 24.265625 25.34375 24.265625 \nQ 16.453125 24.265625 10.296875 30.703125 \nQ 4.15625 37.15625 4.15625 47.703125 \nQ 4.15625 58.59375 10.578125 65.234375 \nQ 17 71.875 26.65625 71.875 \nQ 33.640625 71.875 39.421875 68.109375 \nQ 45.21875 64.359375 48.21875 57.390625 \nQ 51.21875 50.4375 51.21875 37.25 \nQ 51.21875 23.53125 48.234375 15.40625 \nQ 45.265625 7.28125 39.375 3.03125 \nQ 33.5 -1.21875 25.59375 -1.21875 \nQ 17.1875 -1.21875 11.859375 3.4375 \nQ 6.546875 8.109375 5.46875 16.546875 \nz\nM 41.453125 48.140625 \nQ 41.453125 55.71875 37.421875 60.15625 \nQ 33.40625 64.59375 27.734375 64.59375 \nQ 21.875 64.59375 17.53125 59.8125 \nQ 13.1875 55.03125 13.1875 47.40625 \nQ 13.1875 40.578125 17.3125 36.296875 \nQ 21.4375 32.03125 27.484375 32.03125 \nQ 33.59375 32.03125 37.515625 36.296875 \nQ 41.453125 40.578125 41.453125 48.140625 \nz\n\" id=\"ArialMT-57\"/>\n <path d=\"M 17.671875 38.8125 \nQ 12.203125 40.828125 9.5625 44.53125 \nQ 6.9375 48.25 6.9375 53.421875 \nQ 6.9375 61.234375 12.546875 66.546875 \nQ 18.171875 71.875 27.484375 71.875 \nQ 36.859375 71.875 42.578125 66.421875 \nQ 48.296875 60.984375 48.296875 53.171875 \nQ 48.296875 48.1875 45.671875 44.5 \nQ 43.0625 40.828125 37.75 38.8125 \nQ 44.34375 36.671875 47.78125 31.875 \nQ 51.21875 27.09375 51.21875 20.453125 \nQ 51.21875 11.28125 44.71875 5.03125 \nQ 38.234375 -1.21875 27.640625 -1.21875 \nQ 17.046875 -1.21875 10.546875 5.046875 \nQ 4.046875 11.328125 4.046875 20.703125 \nQ 4.046875 27.6875 7.59375 32.390625 \nQ 11.140625 37.109375 17.671875 38.8125 \nz\nM 15.921875 53.71875 \nQ 15.921875 48.640625 19.1875 45.40625 \nQ 22.46875 42.1875 27.6875 42.1875 \nQ 32.765625 42.1875 36.015625 45.375 \nQ 39.265625 48.578125 39.265625 53.21875 \nQ 39.265625 58.0625 35.90625 61.359375 \nQ 32.5625 64.65625 27.59375 64.65625 \nQ 22.5625 64.65625 19.234375 61.421875 \nQ 15.921875 58.203125 15.921875 53.71875 \nz\nM 13.09375 20.65625 \nQ 13.09375 16.890625 14.875 13.375 \nQ 16.65625 9.859375 20.171875 7.921875 \nQ 23.6875 6 27.734375 6 \nQ 34.03125 6 38.125 10.046875 \nQ 42.234375 14.109375 42.234375 20.359375 \nQ 42.234375 26.703125 38.015625 30.859375 \nQ 33.796875 35.015625 27.4375 35.015625 \nQ 21.234375 35.015625 17.15625
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAFqCAYAAAAz2BDjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAgAElEQVR4nOzdeXSc5ZXg/2/tu/bS6kXeWQwYMFtiMCE2BkwgCTTNktBkaxL4wUxOh8AYCIQzdHKIJ8lM0nQ3kOnpDkxPu0OwIRg7LCHsmwFjG4Ed25K176p9ebffH2UJy7KlWqWSdD/ncA6qt+p9r0rW1VPP+zz3mgzDMBBCCFG0zFMdgBBCiPFJohZCiCIniVoIIYqcJGohhChykqiFEKLISaIWQogiZ53qAAqhvz+Mrme26rC83M3gYLRAEeWmmGOD4o5PYsteMcdXzLFBdvH5/b7jHpMR9WF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opmfoQQoipEEukNrhkk6QNw2DrWy3oOqw/b/6kbhMfjyRqIcSMMhCMY81yg0tTyyB7WwNceHo95T5HniPLniRqIcSMoagaA8EEriw2uMQSKs+9dYi6SjfnnjT528THI4laCDFjDIYTWW9weeG9NqIJlcs/14jZnP2Uh2GAOc9TJpKohRAzgqbr9A7GcDkzX5LX3Bnkg319nHdyLXWV7qxjUFUdq8WcUwGoY5FELYSYEUKRJLqReQcXRdX5w5stlPscrF5
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 201,
"source": [
"sns.relplot(x=\"year\", y=\"totalprod\", kind=\"line\", data=honey);"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 360x360 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"363.514219pt\" version=\"1.1\" viewBox=\"0 0 363.579062 363.514219\" width=\"363.579062pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 363.514219 \nL 363.579062 363.514219 \nL 363.579062 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 44.049063 321.78 \nL 356.379062 321.78 \nL 356.379062 7.2 \nL 44.049063 7.2 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#pe0c022e270)\" d=\"M 58.245881 321.78 \nL 58.245881 7.2 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 1998 -->\n <defs>\n <path d=\"M 37.25 0 \nL 28.46875 0 \nL 28.46875 56 \nQ 25.296875 52.984375 20.140625 49.953125 \nQ 14.984375 46.921875 10.890625 45.40625 \nL 10.890625 53.90625 \nQ 18.265625 57.375 23.78125 62.296875 \nQ 29.296875 67.234375 31.59375 71.875 \nL 37.25 71.875 \nz\n\" id=\"ArialMT-49\"/>\n <path d=\"M 5.46875 16.546875 \nL 13.921875 17.328125 \nQ 14.984375 11.375 18.015625 8.6875 \nQ 21.046875 6 25.78125 6 \nQ 29.828125 6 32.875 7.859375 \nQ 35.9375 9.71875 37.890625 12.8125 \nQ 39.84375 15.921875 41.15625 21.1875 \nQ 42.484375 26.46875 42.484375 31.9375 \nQ 42.484375 32.515625 42.4375 33.6875 \nQ 39.796875 29.5 35.234375 26.875 \nQ 30.671875 24.265625 25.34375 24.265625 \nQ 16.453125 24.265625 10.296875 30.703125 \nQ 4.15625 37.15625 4.15625 47.703125 \nQ 4.15625 58.59375 10.578125 65.234375 \nQ 17 71.875 26.65625 71.875 \nQ 33.640625 71.875 39.421875 68.109375 \nQ 45.21875 64.359375 48.21875 57.390625 \nQ 51.21875 50.4375 51.21875 37.25 \nQ 51.21875 23.53125 48.234375 15.40625 \nQ 45.265625 7.28125 39.375 3.03125 \nQ 33.5 -1.21875 25.59375 -1.21875 \nQ 17.1875 -1.21875 11.859375 3.4375 \nQ 6.546875 8.109375 5.46875 16.546875 \nz\nM 41.453125 48.140625 \nQ 41.453125 55.71875 37.421875 60.15625 \nQ 33.40625 64.59375 27.734375 64.59375 \nQ 21.875 64.59375 17.53125 59.8125 \nQ 13.1875 55.03125 13.1875 47.40625 \nQ 13.1875 40.578125 17.3125 36.296875 \nQ 21.4375 32.03125 27.484375 32.03125 \nQ 33.59375 32.03125 37.515625 36.296875 \nQ 41.453125 40.578125 41.453125 48.140625 \nz\n\" id=\"ArialMT-57\"/>\n <path d=\"M 17.671875 38.8125 \nQ 12.203125 40.828125 9.5625 44.53125 \nQ 6.9375 48.25 6.9375 53.421875 \nQ 6.9375 61.234375 12.546875 66.546875 \nQ 18.171875 71.875 27.484375 71.875 \nQ 36.859375 71.875 42.578125 66.421875 \nQ 48.296875 60.984375 48.296875 53.171875 \nQ 48.296875 48.1875 45.671875 44.5 \nQ 43.0625 40.828125 37.75 38.8125 \nQ 44.34375 36.671875 47.78125 31.875 \nQ 51.21875 27.09375 51.21875 20.453125 \nQ 51.21875 11.28125 44.71875 5.03125 \nQ 38.234375 -1.21875 27.640625 -1.21875 \nQ 17.046875 -1.21875 10.546875 5.046875 \nQ 4.046875 11.328125 4.046875 20.703125 \nQ 4.046875 27.6875 7.59375 32.390625 \nQ 11.140625 37.109375 17.671875 38.8125 \nz\nM 15.921875 53.71875 \nQ 15.921875 48.640625 19.1875 45.40625 \nQ 22.46875 42.1875 27.6875 42.1875 \nQ 32.765625 42.1875 36.015625 45.375 \nQ 39.265625 48.578125 39.265625 53.21875 \nQ 39.265625 58.0625 35.90625 61.359375 \nQ 32.5625 64.65625 27.59375 64.65625 \nQ 22.5625 64.65625 19.234375 61.421875 \nQ 15.921875 58.203125 15.921875 53.71875 \nz\nM 13.09375 20.65625 \nQ 13.09375 16.890625 14.875 13.375 \nQ 16.65625 9.859375 20.171875 7.921875 \nQ 23.6875 6 27.734375 6 \nQ 34.03125 6 38.125 10.046875 \nQ 42.234375 14.109375 42.234375 20.359375 \nQ 42.234375 26.703125 38.015625 30.859375 \nQ 33.796875 35.015625 27.4375 35.015625 \nQ 21.234375 35.015625 17.156
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAFqCAYAAAAz2BDjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9t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I4riNORckJ0Q4E6C1aRh2jWr146XWO76gxy1aqWTHmYBDbrlMcXsQCCYUp/EKIXCtTTnNWS7AGS7q46mfJQcnoBVDRzGPRH6Ug5ITqhQD3NcSwLDUhrVx2Ny+jPcizYZHiOhSSrNKaLEJ1QoJ4BRqfATLarVjUN3YNhCDlMeZyK5xhdG0YRUswoUM8Ao7vqyUaGDftjiOhY8y2aTh4pz+MgXkJmKgrUM4RN5DEwHB13Vx1LyOj1hnOe8jgVy56sqY5N/z7VsqIiGElgcCRK8yFJQTD2SB3RDcsyY7tqj8s69vGxlAevT8rjVCaBxUggBqfVpOvj5JqqaYjFFURiEnzhOCIxGQzDQFZUaIx22vNJSD5QoJ5BbCKPwZEYyhwi+JNjwIYDMYSjEpx2/YOnWeDgDycn4Qh5rjFPJS4piMYk+CMJBMISoGlgGRYmEwOnLflcqaqGfm8UJTZzVr1QCMkVCtQzCMsyUFVtbFcdTyjJlIdBx9yTY7qAYCSBMqdoyGOmS1ZUxBIKguEEfOE45JNj1QSBhX2CIcQsy4DjgL7hCBoqHUYvmZAxFKhnGJsluasutZvRNRgCz+mf8jiVaE4eKc93oD41neEPxxGJKdCggecYmAUu7ZmWFjMPXzAOt1PMyUlOQrJBgXqGGd1Vdw6EDUt5nErgOQQ
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Build a facet grid"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 189,
"source": [
"\n",
"sns.relplot(\n",
" data=honey, \n",
" x=\"yieldpercol\", y=\"numcol\",\n",
" col=\"year\", \n",
" col_wrap=3,\n",
" kind=\"line\"\n",
")\n"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7fec8d8419b0>"
]
},
"metadata": {},
"execution_count": 189
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 1080x1800 with 15 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"1804.279844pt\" version=\"1.1\" viewBox=\"0 0 1083.028352 1804.279844\" width=\"1083.028352pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 1804.279844 \nL 1083.028352 1804.279844 \nL 1083.028352 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 68.376563 348.373 \nL 390.844796 348.373 \nL 390.844796 21.825 \nL 68.376563 21.825 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 85.53979 348.373 \nL 85.53979 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_2\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 135.651404 348.373 \nL 135.651404 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n <g id=\"xtick_3\">\n <g id=\"line2d_3\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 185.763017 348.373 \nL 185.763017 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n <g id=\"xtick_4\">\n <g id=\"line2d_4\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 235.874631 348.373 \nL 235.874631 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n <g id=\"xtick_5\">\n <g id=\"line2d_5\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 285.986244 348.373 \nL 285.986244 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n <g id=\"xtick_6\">\n <g id=\"line2d_6\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 336.097858 348.373 \nL 336.097858 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n <g id=\"xtick_7\">\n <g id=\"line2d_7\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 386.209472 348.373 \nL 386.209472 21.825 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n </g>\n </g>\n <g id=\"matplotlib.axis_2\">\n <g id=\"ytick_1\">\n <g id=\"line2d_8\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 68.376563 334.698656 \nL 390.844796 334.698656 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <defs>\n <path d=\"M 4.15625 35.296875 \nQ 4.15625 48 6.765625 55.734375 \nQ 9.375 63.484375 14.515625 67.671875 \nQ 19.671875 71.875 27.484375 71.875 \nQ 33.25 71.875 37.59375 69.546875 \nQ 41.9375 67.234375 44.765625 62.859375 \nQ 47.609375 58.5 49.21875 52.21875 \nQ 50.828125 45.953125 50.828125 35.296875 \nQ 50.828125 22.703125 48.234375 14.96875 \nQ 45.65625 7.234375 40.5 3 \nQ 35.359375 -1.21875 27.484375 -1.21875 \nQ 17.140625 -1.21875 11.234375 6.203125 \nQ 4.15625 15.140625 4.15625 35.296875 \nz\nM 13.1875 35.296875 \nQ 13.1875 17.671875 17.3125 11.828125 \nQ 21.4375 6 27.484375 6 \nQ 33.546875 6 37.671875 11.859375 \nQ 41.796875 17.71875 41.796875 35.296875 \nQ 41.796875 52.984375 37.671875 58.78125 \nQ 33.546875 64.59375 27.390625 64.59375 \nQ 21.34375 64.59375 17.71875 59.46875 \nQ 13.1875 52.9375 13.1875 35.296875 \nz\n\" id=\"ArialMT-48\"/>\n </defs>\n <g style=\"fill:#262626;\" transform=\"translate(52.759531 338.635453)scale(0.11 -0.11)\">\n <use xlink:href=\"#ArialMT-48\"/>\n </g>\n </g>\n </g>\n <g id=\"ytick_2\">\n <g id=\"line2d_9\">\n <path clip-path=\"url(#p6c17e039ad)\" d=\"M 68.376563 276.261291 \nL 390.844796 276.261291 \n\" style=\"fill:none;stro
"image/png": "iVBORw0KGgoAAAANSUhEUgAABDoAAAcKCAYAAACQvwCJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjAsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+17YcXAAAgAElEQVR4nOzde3iU9Z3//9cccyCBEEgChIMKKkULqHhAW9K6LQcDilC7/mTV7UG3rl+12ovKpQirXatY1kNXwe331+qWbX9bSyseNmBXXUSLrQpbUIscIscEkgnkQE4z99xz//6YzOQccphJ5p55Pq5rr8pNMvl8yOaeyWve7/fHYVmWJQAAAAAAgCTgHOoFAAAAAAAAxApBBwAAAAAASBoEHQAAAAAAIGkQdAAAAAAAgKRB0AEAAAAAAJIGQQcAAAAAAEgaBB2AzTzzzDN65JFHon8OBAJatWqV5s6dq8WLF+uZZ55RKBSSJH322We68cYbtXDhQt144416//33o5/33//931q0aJGuu+463XzzzTpy5Mig7wUAhlKs7qcbNmzQvHnzdN111+m+++5TTU3NoO8FAIbCu+++qyVLlui6667T9ddfr3fffTf6dxs3btSCBQs0d+5crV69WoZhSJKampr0gx/8QAsWLNC8efP05ptvRj9n165dWrJkiRYsWKBbb71VlZWVg74nJAkLgC0cP37cuuuuu6zp06dbDz/8cPT6M888Y33729+2mpubLdM0rQcffNDasGGDZVmW9dWvftXauHGjZVmWVVlZac2dO9eqrKy0mpqarBkzZliHDh2yLMuyXnjhBeu2224b/E0BwBCI5f30/ffft7785S9bx48ftyzLsl5++WXrrrvuGvxNAcAgq6ursy677DJr3759lmVZ1p49e6xLLrnEOn36tLV3715rzpw51smTJy3TNK17773X+tnPfmZZlmWtWbPGWrlypWVZllVWVmZdddVV1vHjxy2/32/NmTPH+uijjyzLsqxf/epX1ne/+92h2Rxszz3UQQuQaFauXKnc3Fzdd999kqRXX31Vb7zxhp577jm9/fbbWr9+vQzDUHp6uu6//35ddNFFqqqq0qpVq3Ty5En5fD4VFhbq6aef1qhRo3T11Vdr+vTp2rt3r+677z59/etfj36tn/3sZ/qv//qvTmt48cUXNXLkyHbXNm7cqEsuuUTnnHOO6urqotc//fRTFRcXKy0tTZL0ta99TT//+c91zTXX6Pjx41q8eLEkKS8vT+eff77effddzZs3T5Zl6fTp05KkhoaG6OcDQKykwv20urpaV155pcaMGSNJmjt3rlauXKlAICCv1xvbf1AAKSsR76eGYWj16tU699xzJUlTpkyRZVmqrq7WW2+9pauvvlq5ubmSpL/927/VP//zP+u2227Tm2++qbVr10qSxo0bpy996UvavHmzpk+frqysLF1yySWSpG984xv68Y9/rOrq6k73ceCMhjppARLNX//6V+uqq66yDMOwLMuybrrpJmvbtm3WwYMHrYULF1qnTp2yLMuy9u3bZ1111VVWQ0OD9eKLL1r/9m//ZlmWZYVCIeu73/2u9fOf/9yyrPC7gM8++2zM1vfTn/603TuQzz77rPWd73zHqq+vt/x+v3XfffdZc+fOtSzLsr72ta9Zv/3tby3LsqwjR45YV155pfX8889blhV+1/GCCy6wrrrqKmv27NnR6g4AiJVUuJ9+8MEHVlFRkXXs2DHLsixrw4YN1nnnnWdVVFTEbJ0AkOj3U8uyrH/5l3+xlixZYlmWZT300EPRr21ZlnXo0CHr0ksvtSzLsi688EKrsrIy+ndPPvmk9eMf/9h6/fXXrW9/+9vtHvPLX/6ytWfPnpiuE6mBig6ggy984QsaP368tm7dqrPPPluVlZX60pe+pF//+teqrKzU3//930c/1uFw6MiRI7r11lv10Ucf6YUXXtChQ4e0f/9+zZgxI/pxs2bN6vJr9eUdyO7cdttteuqpp3TjjTdq+PDhuuaaa7Rv3z5J0vr167VmzRr9+7//u84//3wVFRXJ4/Fo7969eu6551RSUqKJEyfql7/8pe666y698sorcjgcffjXAoDupcL99NJLL9Wdd96p//N//o8cDoeWLl2qnJwceTyePvxLAUDPEvl+GgwG9fjjj2vbtm168cUXJUmWZXX6OKfT2ePfRWYideRyubq8DvSEoAPowrJly/S73/1OZ511lr75zW/K4XAoFApp9uzZevrpp6Mfd/z4ceXn5+snP/mJdu/eraVLl+ryyy9XMBhsdxPPzMzs8uvcfvvtuv322we01traWn3rW9/S/fffL0nR8EKSQqGQ1q9fL7c7/KP+3e9+V1dffbXee+89XXzxxdGPW7ZsmR577DFVV1dHSwwBIBaS/X5aX1+vyy67TDfccIMkqaqqSj/96U+Vk5MzoLUAQEeJeD+tra3V3XffLcuy9Jvf/CYahIwdO7bdINGKiopoi9/YsWPl8/mUl5cnSaqsrNTUqVOj1yMMw1B1dbUKCgp6+S8EtOLUFaAL8+bN0549e/SHP/xBS5culSRdccUV+uMf/6jS0lJJ0jvvvKNrr71Wfr9f7733nm699VYtXrxYo0aN0vbt22Wa5qCs9e2339aqVatkWZYaGhr0wgsvaNGiRZKkVatWRSdZ79y5U/v379eVV16padOm6cMPP1RVVZUk6c0339T48eMJOQDEXLLfTysrK3XzzTervr5ekrRu3ToVFxdTHQcg5hLtfhoIBPTtb39b48eP1y9+8Yt21R5XX3213n77bZ08eTIagnzta1+TJP3N3/yNfvOb30iSTpw4oXfffVdf/epXNWPGDNXU1Gjnzp2SpN/97neaOXOmhg8fHrM1I3VQ0QF0wev1at68eaqqqor+8n/uuefqkUce0X333SfLsuR2u7V+/XplZmbqzjvv1BNPPKF169bJ5XLp4osvHrTjWpcuXapdu3Zp4cKFMk1T3/zmNzV//nxJ0iOPPKKVK1fqueeeU2ZmZvR/Z8+ere985zu6+eab5fF4NGLECK1bt25Q1gsgtST7/fScc87R7bffrhtuuEGhUEiXXHKJVq1aNSjrBZBaEu1+umXLFn3yyScKBALR4EWSnnjiCU2dOlV33nmnbr31VhmGoRkzZui2226TJN111136p3/6JxUXF8s0TS1fvjxaPffss8/qkUceUVNTk3JycrRmzZqYrRepxWF11SQFpLjGxkb93d/9nVavXt2ulxEA0DfcTwEgNrifAr1H6wrQwbvvvquvfOUruvzyy3kSAYAB4H4KALHB/RToGyo6AAAAAABA0qCiAwAAAAAAJA2CDgAAAAAAkDQIOgAAAAAAQNLgeNkunDxZr1Co/6NLRo7MVHV1YwxXNDTYR2JhH4klmfeRl5cds8fnfhrGPhIL+0g8ybKXjvvgfhp77CPxJMte2EdiGej9lIqOOHC7XUO9hJhgH4mFfSQW9jE4En19vcU+Egv7SDzJspdE3kcir60v2EfiSZa9sI/EMtB9EHQAAAAAAICkQdABAAAAAACSBkEHAAAAAABIGgQdAAAAAAAgaRB0AAAAAACApEHQAQAAAAAAkgZBBwAAAAAASBoEHQAAAAAAIGkQdAAAAAAAgKRB0AEAAAAAAJIGQQcAAAAAAEgaBB0AAAAAACBpEHQAAAAAAICkQdABAAAAAACSBkEHAAAAAABIGnENOm655RYVFxfruuuu03XXXaddu3bptdde0zXXXKOvf/3r+tWvfhX92O3bt2vRokWaO3eunnrqqej1PXv2aOnSpZo3b54efPBBBYNBSVJ5ebmWLVum+fPn64477lBDQ4Mkqa6uTrfffrsWLFigZcuWyefzxXOLAAAAAAAggcQt6LAsS59//rleeeWV6P+NGTNGTz31lH7961/rlVde0W9+8xsdOHBAzc3NeuCBB7Ru3TqVlJTok08+0TvvvCNJWr58uR566CG98cYbsixLL730kiTp4Ycf1k033aQtW7bowgsv1Lp16yRJTz/9tGbNmqXNmzfrhhtu0KOPPhq
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Create a dual line plot (this solution is suggested by Kedar Ghule: https://kedar.hashnode.dev/how-to-combine-two-line-charts-in-seaborn-and-python)"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 200,
"source": [
"fig, ax = plt.subplots(figsize=(12,6))\n",
"lineplot = sns.lineplot(x=honey['year'], y=honey['numcol'], data=honey, \n",
" label = 'Number of bee colonies', legend=False)\n",
"sns.despine()\n",
"plt.ylabel('# colonies')\n",
"plt.title('Honey Production Year over Year');\n",
"\n",
"ax2 = ax.twinx()\n",
"lineplot2 = sns.lineplot(x=honey['year'], y=honey['yieldpercol'], ax=ax2, color=\"r\", \n",
" label ='Yield per colony', legend=False) \n",
"sns.despine(right=False)\n",
"plt.ylabel('colony yield')\n",
"ax.figure.legend();"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 864x432 with 2 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Created with matplotlib (https://matplotlib.org/) -->\n<svg height=\"421.434219pt\" version=\"1.1\" viewBox=\"0 0 826.076563 421.434219\" width=\"826.076563pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <style type=\"text/css\">\n*{stroke-linecap:butt;stroke-linejoin:round;white-space:pre;}\n </style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 421.434219 \nL 826.076563 421.434219 \nL 826.076563 0 \nL 0 0 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 68.376563 379.7 \nL 737.976562 379.7 \nL 737.976562 53.54 \nL 68.376563 53.54 \nz\n\" style=\"fill:#eaeaf2;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#pe3df8d7e84)\" d=\"M 98.812926 379.7 \nL 98.812926 53.54 \n\" style=\"fill:none;stroke:#ffffff;stroke-linecap:round;\"/>\n </g>\n <g id=\"text_1\">\n <!-- 1998 -->\n <defs>\n <path d=\"M 37.25 0 \nL 28.46875 0 \nL 28.46875 56 \nQ 25.296875 52.984375 20.140625 49.953125 \nQ 14.984375 46.921875 10.890625 45.40625 \nL 10.890625 53.90625 \nQ 18.265625 57.375 23.78125 62.296875 \nQ 29.296875 67.234375 31.59375 71.875 \nL 37.25 71.875 \nz\n\" id=\"ArialMT-49\"/>\n <path d=\"M 5.46875 16.546875 \nL 13.921875 17.328125 \nQ 14.984375 11.375 18.015625 8.6875 \nQ 21.046875 6 25.78125 6 \nQ 29.828125 6 32.875 7.859375 \nQ 35.9375 9.71875 37.890625 12.8125 \nQ 39.84375 15.921875 41.15625 21.1875 \nQ 42.484375 26.46875 42.484375 31.9375 \nQ 42.484375 32.515625 42.4375 33.6875 \nQ 39.796875 29.5 35.234375 26.875 \nQ 30.671875 24.265625 25.34375 24.265625 \nQ 16.453125 24.265625 10.296875 30.703125 \nQ 4.15625 37.15625 4.15625 47.703125 \nQ 4.15625 58.59375 10.578125 65.234375 \nQ 17 71.875 26.65625 71.875 \nQ 33.640625 71.875 39.421875 68.109375 \nQ 45.21875 64.359375 48.21875 57.390625 \nQ 51.21875 50.4375 51.21875 37.25 \nQ 51.21875 23.53125 48.234375 15.40625 \nQ 45.265625 7.28125 39.375 3.03125 \nQ 33.5 -1.21875 25.59375 -1.21875 \nQ 17.1875 -1.21875 11.859375 3.4375 \nQ 6.546875 8.109375 5.46875 16.546875 \nz\nM 41.453125 48.140625 \nQ 41.453125 55.71875 37.421875 60.15625 \nQ 33.40625 64.59375 27.734375 64.59375 \nQ 21.875 64.59375 17.53125 59.8125 \nQ 13.1875 55.03125 13.1875 47.40625 \nQ 13.1875 40.578125 17.3125 36.296875 \nQ 21.4375 32.03125 27.484375 32.03125 \nQ 33.59375 32.03125 37.515625 36.296875 \nQ 41.453125 40.578125 41.453125 48.140625 \nz\n\" id=\"ArialMT-57\"/>\n <path d=\"M 17.671875 38.8125 \nQ 12.203125 40.828125 9.5625 44.53125 \nQ 6.9375 48.25 6.9375 53.421875 \nQ 6.9375 61.234375 12.546875 66.546875 \nQ 18.171875 71.875 27.484375 71.875 \nQ 36.859375 71.875 42.578125 66.421875 \nQ 48.296875 60.984375 48.296875 53.171875 \nQ 48.296875 48.1875 45.671875 44.5 \nQ 43.0625 40.828125 37.75 38.8125 \nQ 44.34375 36.671875 47.78125 31.875 \nQ 51.21875 27.09375 51.21875 20.453125 \nQ 51.21875 11.28125 44.71875 5.03125 \nQ 38.234375 -1.21875 27.640625 -1.21875 \nQ 17.046875 -1.21875 10.546875 5.046875 \nQ 4.046875 11.328125 4.046875 20.703125 \nQ 4.046875 27.6875 7.59375 32.390625 \nQ 11.140625 37.109375 17.671875 38.8125 \nz\nM 15.921875 53.71875 \nQ 15.921875 48.640625 19.1875 45.40625 \nQ 22.46875 42.1875 27.6875 42.1875 \nQ 32.765625 42.1875 36.015625 45.375 \nQ 39.265625 48.578125 39.265625 53.21875 \nQ 39.265625 58.0625 35.90625 61.359375 \nQ 32.5625 64.65625 27.59375 64.65625 \nQ 22.5625 64.65625 19.234375 61.421875 \nQ 15.921875 58.203125 15.921875 53.71875 \nz\nM 13.09375 20.65625 \nQ 13.09375 16.890625 14.875 13.375 \nQ 16.65625 9.859375 20.171875 7.921875 \nQ 23.6875 6 27.734375 6 \nQ 34.03125 6 38.125 10.046875 \nQ 42.234375 14.109375 42.234375 20.359375 \nQ 42.234375 26.703125 38.015625 30.859375 \nQ 33.796875 35.015625 27.4375 35.015625 \nQ 21.234375 35.015625 17.
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAzkAAAGkCAYAAAASdeutAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW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WXXsQBBxzIO+/8jd7eON/61jUcddTnBvt6/vwTt9guw9C5/fZbWbduLQCnnrqQk08+dbt+5xLkCCGEEEKIkvnT31t47f+VJp3rmIOncvSnp27XvldccSWLFp3BG2/8hcMPP2K7nrNmzWpuvHEJe++9D2eccTJTpkzloYce4aGHHmT58l/yv/7XdwCYMWMGN998K6+//ie++91bePTRJ/nBD/6d+fNP4phj5tLV1ckll3yDRx99EoB8vsBTTz272fmWLLmRc845ny984Uu8++7fuf76q3j66ee46KJ/5e23V20W4AB0d3fx4IP/iee5nHfeIj772UPo7u7igw/+ycMPP4amaSxZchMrV65g3333Y/nyX7Js2cP4/X7uv/8/ePzxx/j61y8cPF5HRwf33vu/eeSRx6mrm8SSJTfy5z//ib///R2qqqp44oln6O2N8/Wvn8vee+8z+Dzbtrnxxuu48857OOCAA3nppd9x883X8/DDPwPAcWweeugR/vjHV3nwwR9x1FGfG3zuunVrt9iugw/+LMlkkkcffZJEopcf/vAHEuQIIYQQQggxIByOcN11N3HXXd/l8cef3q7n7Lbbbuy7734A1NZOYs6cwwCYPHkKb7/9ceB24omnAHDUUUezZMmN9PX18eabf6WhoZ5lyx4AwHEcmpubADjwwIM2O1cmk6GpqZEvfOFLABx00KeJxapoaKjfZhu//OXjCAaDABx99DH87W+raG9v57333uX88xcBkM/nmTx5MqlUH42NjVx44XlAMTAZeH0D3n3373z605+hrm4SAEuW3A7Aww8/xA03FOfeVFfXcMwxc3n77VWD6XMbNjQQi8U44IADAfjSl47l7rtvJ5XqA+CII44CYM899yKZTA4556pVb26xXaeddjobNtRzxRXf5Kijjuayy/5tm32xMQlyhBBCCCFEyRz96e0fbSm1ww8/cjBtbUBxLZ+PaxA7jjP4/6ZpDXm+YRhbPK5pDt1uWSae53LffQ9SVVUFQGdnJxMmTODVV1/eLD0MQCkPtUkt5OKCl+42X9PQNikMo3juM888m7PP/hoAfX19GIbBr3/9HF/60rF8+9tXA8XAatPjm+bQ8CAejwPgedtum+d5W3hNCtctbvf5Bl6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WKFVx33XW8+OKLZWyVEELsvFAoxHXX3cQdd9zKnDmH8ZOfPMDnP38MhxwyB4CTT57H/fcvY9KkSfzHf9zL22+vwvNc5s1bwFlnfW3IsT788APuuOM2APbee+8tnu+2225B1zXWrl1DKpXi61+/kOOPn08mk2Hp0rtZu3YNnudxzjnn85WvfJXnn/8VK1Y8TyLRy9FHf55LL7188FitrS3cfvsS4vE4gUCA6667ib333ofnn1/OE0/8DE3T2Hff/fnOd64hFAoNPi+Xy3LnnbezZs1HaJrGokXncsIJ83n++V/xl7+8TjKZpKWlicMOO5Krr76OJUtu5OCDP8vJJ58GwDe/eTHf/OblHHTQvwzjb2JkSZAjhBBiq3p7ewfvcP7hD3/ggQcewLZtAoEA11xzDZ/97GcBeOCBB3jxxRfxPI9p06Zxyy23MGnSJF588UUeeOABNE3DMAyuvvpqDj300HK+JCHECOv985/ofe21khy7+phjqP7c0Z+432GHHc7hhx/J7bcvob5+PT/96aOb7bN8+X8D8OijT1AoFLjiisvYf/8Dhuxz2203c8UV3+awww7nP/9
},
"metadata": {}
}
],
"metadata": {}
}
],
"metadata": {
"orig_nbformat": 4,
"language_info": {
"name": "python",
"version": "3.7.0",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3.7.0 64-bit"
},
"interpreter": {
"hash": "70b38d7a306a849643e446cd70466270a13445e5987dfa1344ef2b127438fa4d"
}
},
"nbformat": 4,
"nbformat_minor": 2
}