Skip to content

taol-assignments/cmsc-final-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmsc-final-project

This is the source code of the Final Project of CMSC 6950. It can process, analyze, and present current Canadian Covid-19 data (https://health-infobase.canada.ca/src/data/covidLive/covid19.csv).

Getting started

The following instructions will show how to use the codes.

Prerequisites

  1. Change the current working directory to the source code directory:
$ cd cmsc-final-project
  1. Initialize the virtual environment and install the required packages:
$ python -m venv venv
$ . ./venv/bin/activate
(venv) $ pip install -r requirements.txt

Plot the total cases, tested cases and new cases over time

Run province_wise_plots.py in the main directory:

(venv) $ python province_wise_plots.py

Calculate the doubling rate

Go to the directory calculate-plot-doubling-rate/calculate-doubling-rate, and type the following command to get the doubling rate for the given province:

(venv) $ python calculate-doubling-rate.py Alberta

Plot the doubling rate

Go to the directory calculate-plot-doubling-rate/plot-doubling-rate, call the function plot_doubling_rate() in plot-doubling-rate.py:

# plot the curve for Alberta
plot_doubling_rate('../calculate-doubling-rate/covid19-Alberta.csv', 'Alberta')

Create pie chart of different provinces.

Go to the directory reactive-graphs, call the function draw_pie_chart() in pie-chart.py:

draw_pie_chart(pd.read_csv("https://health-infobase.canada.ca/src/data/covidLive/covid19.csv"), 'pie.html')

Create videos to visualize the changes of data over time

Go to the directory video-visualization/changes-of-deaths&recover, call the function dynamic_death_recover_plot() in dynamic-death&recover-plot.py:

data = pd.read_csv("https://health-infobase.canada.ca/src/data/covidLive/covid19.csv")
province = 'Yukon'
dynamic_death_recover_plot(data, province)

Authors

  • Tao Liu
  • Shuaishaui Li
  • Shammy Sriharsha Ambati

About

The Final Project of CMSC 6950.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •