{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Antigua and Barbuda \n", "\n", "* Homepage of project: https://oscovida.github.io\n", "* [Execute this Jupyter Notebook using myBinder](https://mybinder.org/v2/gh/oscovida/binder/master?filepath=ipynb/Antigua%20and%20Barbuda.ipynb)\n", "* notebook creation time: 24/06/2020 10:45:40" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from oscovida import *" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "overview(\"Antigua and Barbuda\");" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# load the data \n", "cases, deaths, region_label = get_country_data(\"Antigua and Barbuda\")\n", "\n", "# compose into one table\n", "table = compose_dataframe_summary(cases, deaths)\n", "\n", "# show tables with up to 500 rows\n", "pd.set_option(\"max_rows\", 500) \n", "\n", "# display the table\n", "table" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Explore the data in your web browser\n", "\n", "- If you want to execute this notebook, [click here to use myBinder](https://mybinder.org/v2/gh/oscovida/binder/master?filepath=ipynb/Antigua%20and%20Barbuda.ipynb)\n", "- and wait (~1 to 2 minutes)\n", "- Then press SHIFT+RETURN to advance code cell to code cell\n", "- See http://jupyter.org for more details on how to use Jupyter Notebook" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Acknowledgements:\n", "\n", "- Johns Hopkins University provides data for countries\n", "- Robert Koch Institute provides data for within Germany\n", "- Open source and scientific computing community for the data tools\n", "- Github for hosting repository and html files\n", "- Project Jupyter for the Notebook and binder service\n", "- The H2020 project Photon and Neutron Open Science Cloud ([PaNOSC](https://www.panosc.eu/))\n", "\n", "--------------------" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(f\"Download of data from Johns Hopkins university: cases at {fetch_cases_last_execution()} and \" \n", " f\"deaths at {fetch_deaths_last_execution()}.\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# to force a fresh download of data, run \"clear_cache()\"" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.6" } }, "nbformat": 4, "nbformat_minor": 2 }