Visualizing the Spread & Effects of COVID-19 Around the World
Published:
Summary
Amidst the COVID-19 pandemic, we found common interest in applying advanced python methods to build a visualization dashboard that investigates its effects. We choose three particular areas of interest:
- Economic effects (measured by relative change in stock price based on each company’s range from November 2019 to January 2020)
- Social effects (measured by volume of Twitter activity per day per geography)
- Public health effects (measured by total fatalities per day per geography).
Report can be found here, slides here and relevant code can be found in this GitHub repo.
Data and Methods
Wanting to present the data in a cohesive manner, we use Python’s plotly visualization package with dash, which together enable us to produce a single sub-plotted visualization with a universal slider to provide a dynamic time series view of daily change. Given the scale and limitations of some of our data and collection capacities (e.g., Twitter’s API call restrictions forced us to seek other data sourcing), we gather data from January 21st onward, a reasonable negotiation given the timeline of the global spread of COVID-19 which escalated mostly after mid-January.
The dashboard layout is as follows:
- New COVID-19 cases reported per day
- Daily COVID-19 tweets
- Normalized stock index
- Hypothesized stock index
To launch the application:
- Git clone repository
- Initialize Virtual Environment
- $ pip install -r requirements.txt
- $ python3 app.py