Skip to content

Mapping of COVID-19 cases in India, with a bar plot race showing Top 5 most adversely affected states.

Notifications You must be signed in to change notification settings

Suyog7130/covid19Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COVID-19 India Map and Bar Plot Race

The codes here are to generate maps and bar plots of COVID-19 case distribution in terms of number of Active, Cured and Dead cases.

The repository contains 2 plain python codes, covid19Map.py, covid19Animation.py and one jupyter notebook, covid19_barPlotRace.ipynb. The first code produces the maps, the second combines these into a gif animation, while the code in the notebook produces the bar plot race shown above. The data used is available at the following webpage: https://www.mygov.in/corona-data/covid19-statewise-status and has been extracted from it.

Whenever the code is run, the latest data is extracted from the static webpage. Chrome is used for opening the webpage before the data can be extracted. A separate webdriver is required for this which can be downloaded from (https://chromedriver.chromium.org/). The concaneted data is saved in covid19_concatenatedData.csv

Selenium, BeautifulSoup and Geopandas are used to create the maps. imagemagick writer in jupyter notebook with jshtml plugin helps in the generation of the bar plot race. This dynamic bar plot illustrates Top 5 adversely affected Indian States between a period of April 6th to June 5th, 2020.

The map showing the count of Dead from last run of the code is given below.

About

Mapping of COVID-19 cases in India, with a bar plot race showing Top 5 most adversely affected states.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published