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).
The following instructions will show how to use the codes.
- Change the current working directory to the source code directory:
$ cd cmsc-final-project
- Initialize the virtual environment and install the required packages:
$ python -m venv venv
$ . ./venv/bin/activate
(venv) $ pip install -r requirements.txt
Run province_wise_plots.py
in the main directory:
(venv) $ python province_wise_plots.py
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
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')
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')
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)
- Tao Liu
- Shuaishaui Li
- Shammy Sriharsha Ambati