COVID-19 analysis on data from CSSEGISandData covering all the 150+ countries in the data. This repository contains three source code files.
-
COVID-19_Analysis_v5_GH.ipynb
Trends by country, top 10 trends comparison, top 10 and worldwide bar graph. Standalone interactive HTML &/or deployment on web server(local host or cloud provider) -
COVID-19_Daily_Report_All_Regions_v2_JS.ipynb
Daily report bar graph for all countries: Confirmed, Recovered, Deaths, & Active. Incident Rate & Case Fatality Ratio in a table. Standalone interactive HTML &/or deployment on web server(local host or cloud provider) -
COVID-19_Daily_Report_All_Regions_v2.ipynb
Daily report bar graph for all countries: Confirmed, Recovered, Deaths, & Active. Incident Rate & Case Fatality Ratio in a table. Deployment on web server(local host or cloud provider)
The output from this source code contains following tabs with graphs:
- Trends by country
- Cases:
- Cumulative
- Daily
- Seven day moving average
- Recovered
- Death
- Active
- Rate & Ratio:
- Incident Rate
- Case Fatality Ratio
- Cases:
- Trends comparison
- Top 10 countries trends with options for log plot & highlight countries by clicking on countries label
- Top 10 bar graph and table of data corresponding to graph
- Worldwide bar graph and table of data corresponding to graph
The source code uses bokeh, panel, holoviews & hvplot modules along with pandas.
The source code in this Jupyter Notebook reads the following files from CSSEGISandData repository on Github: 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv' 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv' 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv'
This Jupyter notebook when executed generates standalone interactive HTML file (based on the option selected in the code at the end of the last but one cell) and generates interactive output in Jupyter notebook. The standalone interactive HTML is created in 'output' folder, users can change the location & folder name in the code.
This can be deployed on a web server (local or cloud provider) using Bokeh server. On how to deploy, instructions are given in the notebook cells.
This notebook can be run online using mybinder.org, the requirements.txt file takes care of the dependencies required for mybinder.org
Check the output HTML file COVID19 dashboard-Date.html in 'output' folder for interactive standalone output. where 'Date' in the filename is in the format : Day, Month Date, YYYY. Example : 'Sunday, Aug 16, 2020'
The output from this source code contains:
- Daily graphs of Confirmed, Recovered, Deaths, & Active cases.
- Daily Incident Rate & Case Fatality Ratio in a table.
The standalone interactive HTML is created in 'output' folder, users can change the location & folder name in the code. This can be deployed on a web server (local or cloud provider) using Bokeh server. On how to deploy, instructions are given in the notebook cells.
The output from this source code contains:
- Daily graphs of Confirmed, Recovered, Deaths, & Active cases.
- Daily Incident Rate & Case Fatality Ratio in a table.
The interactive output is displayed in the notebook. This can be deployed on a web server (local or cloud provider) using Bokeh server. On how to deploy, instructions are given in the notebook cells.
Note:
- The 'output' folder on this GitHub repository contains standalone interactive HTML files.
- GitHub has file size limitation (up to 5MB) so to view the file with size more than 5MB, you need to download that file(standalone interactive HTML) to your system & open it in a web browser.
- Tested on Microsoft Edge, Google Chrome & Mozilla Firefox.
- You can also check the type of graphs that are generated in the standalone interactive HTML files in the 'output' folder, placed for a quick glance.