/Antivirus-COVID19-API

This project sets up a collaborative environment for data scientists to have readily available resources and dependencies to work with relevant data for COVID-19 cases.

Primary LanguagePython

Antivirus

This project sets up a collaborative environment for data scientists to have readily available resources and dependencies to work with relevant data for COVID-19 cases. In this repository, there are three data sources currently available:

Data Sources

  1. John Hopkins University CSSE (JHU CSSE): timeseries data that tracks confirmed,recovered, and diseased cases of COVID-19.
  1. Refinitiv (Thomson Reuters Eikon): news headlines and news articles for COVID-19 from Eikon's API.
  2. Twitter: tweets from a selected number of users as an alternative source of news for COVID-19 from Twitter's API.

Models

To test our data sources, we introduce the SEIR epidemologist model and create an API with Flask to output data about the estimates that the model calculates.

Collaboration with Git

To collaborate in this project, first clone the following URL: https://github.com/Gustrigos/Antivirus.git.

Add the following in terminal or cmd.

git clone https://github.com/Gustrigos/Antivirus.git.

Environment Setup

This project works with Python 3.7 or later.

To start, create a virtual environment, activate it, and install all the dependencies needed for this project.

python3 -m venv env
source ./env/bin/activate
pip3 install -r requirements.txt

Confirmed, Deaths, Recovered Data

Fetching Data

Data/JHU/fetch_data.py gets timeseries data for confirmed, death, and recovered cases directly from JHU CSSE's COVID-19 repository in raw csv format. It then stores each list into a pandas dataframe object.

Use Case 1: Visualizing Mexico's Confirmed Cases

test_data.py introduces the function plot_country to visualize confirmed cases for any country up to date with pandas and matplotlib. It renders the following graph:

alt text

Use Case 2: Visualizing Latin America's Confirmed Cases

test_data.py introduces the function plot_countries to visualize confirmed cases for a group of countries up to date with pandas and matplotlib. It renders the following graph:

alt text