{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# NYC measles cases by vaccination status (2018 - 2019)\n", "\n", "* This Jupyter/Python notebook creates a bar chart of the 2018-2019 NYC measles outbreak cases by MMR vaccination status.\n", "* This notebook is part of the [Visualizing the 2019 Measles Outbreak](https://carlos-afonso.github.io/measles/) open-source GitHub project.\n", "* [Carlos Afonso](https://www.linkedin.com/in/carlos-afonso-w/), November 6, 2019." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Import libraries" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from datetime import datetime\n", "import matplotlib.pyplot as plt\n", "import os\n", "import pandas as pd" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read and show the data\n", "\n", "The data was manually collected from the [NYC Health Measles webpage](https://www1.nyc.gov/site/doh/health/health-topics/measles.page) and saved as a CSV file. This manual approach was used because the data is small." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Start Date | \n", "End Date | \n", "Unvaccinated | \n", "One Prior MMR | \n", "Two Prior MMR | \n", "Unknown MMR | \n", "Total | \n", "
---|---|---|---|---|---|---|---|
0 | \n", "2018-09-01 | \n", "2019-08-19 | \n", "477 | \n", "47 | \n", "31 | \n", "94 | \n", "649 | \n", "