Giter Club home page Giter Club logo

covid_vaccine_dashboard's Introduction

gif demonstrating usage of dashboard

What are we doing?

The problem

The status and progress of the COVID-19 vaccination rollout is of great public interest. Thus far, Canada's progress has lagged behind that of the United States on a per-capita basis. This has led the current administration to come under increasing scrutiny, as the public grows eager for a return to normalcy after enduring almost a full year of the pandemic. This creates a need for easy access to hard data on vaccination progress.

The solution

Creating a comprehensive dashboard outlining the state and provincial-level vaccination rollout across both Canada and the US gives the public a way to keep themselves informed on this important issue without having to sift through traditional news media coverage. By including data for both Canada and the US in one place, users will be able to not only compare how their state/province is doing relative to the national average, but also how their nation as a whole is doing in comparison to their neighbor. Given that Canada is often compared against the United States, we feel that our dashboard will add value in comparison to what currently exists by including detailed data for both nations in one place.

Beyond this, such a dashboard could eventually be used to reflect on the impact of anti-vaccination sentiment on vaccine administration. While the main constraint is currently supply, as COVID vaccines become more widely available in the coming months, questions surrounding the public's willingness to take a vaccination will become relevant. Given that a more complete return to normalcy is predicated on achieving herd immunity through widespread vaccination, it will be useful to offer individuals an easy way to compare administration rates across different localities.

Description of the App

Our dashboard contains a landing page that shows a choropleth map of the United States and Canada containing the current population-adjusted cumulative vaccination administration for each state/province (as defined by the total number of vaccinations administered divided by population). It includes interactive line plots showing both the cumulative population-adjusted vaccination rates as well as the 7-day rolling mean of the daily chance in vaccinations for any given state/province, along with a comparison to the national average, based on a map-click. Users select particular localities using either a drop-down menu or by clicking a particular region on the map. Below, there is a section where users can make more detailed comparisons of specific metrics across specific localities, e.g. "Daily population-adjusted rolling mean of vaccination distribution for California vs. New York".

Where does the data come from?

covid_vaccine_dashboard's People

Contributors

ericphillips99 avatar github-actions[bot] avatar mitchdecock avatar thomsonhawks avatar

Stargazers

 avatar

Watchers

 avatar  avatar

covid_vaccine_dashboard's Issues

Constantly fetching new data?

Hey team, just wanted to remind you that this dashboard is still running and still fetching data - perhaps too frequently? Consider reducing the frequency (especially if the dashboard is dormant) with which the data is pulled as it does take some compute cycles to do this.

running covid_vaccine_dashboard in Python; found a bug by jparra019 at [email protected]

KeyError Traceback (most recent call last)
~\anaconda3\envs\r-tensorflow\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
2897 try:
-> 2898 return self._engine.get_loc(casted_key)
2899 except KeyError as err:

pandas_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()

pandas_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()

pandas_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()

KeyError: 'total_vaccinations_int'

The above exception was the direct cause of the following exception:

KeyError Traceback (most recent call last)
in
----> 1 data.groupby(['country','date']).apply(lambda x:np.sum(x['total_vaccinations_int'])/np.sum(x['pop_est'])).reset_index().rename(columns={0:'num_vaccines_per_capita'})

~\anaconda3\envs\r-tensorflow\lib\site-packages\pandas\core\groupby\groupby.py in apply(self, func, *args, **kwargs)
857 with option_context("mode.chained_assignment", None):
858 try:
--> 859 result = self._python_apply_general(f, self._selected_obj)
860 except TypeError:
861 # gh-20949

~\anaconda3\envs\r-tensorflow\lib\site-packages\pandas\core\groupby\groupby.py in _python_apply_general(self, f, data)
890 data after applying f
891 """
--> 892 keys, values, mutated = self.grouper.apply(f, data, self.axis)
893
894 return self._wrap_applied_output(

~\anaconda3\envs\r-tensorflow\lib\site-packages\pandas\core\groupby\ops.py in apply(self, f, data, axis)
218 # group might be modified
219 group_axes = group.axes
--> 220 res = f(group)
221 if not _is_indexed_like(res, group_axes):
222 mutated = True

in (x)
----> 1 data.groupby(['country','date']).apply(lambda x:np.sum(x['total_vaccinations_int'])/np.sum(x['pop_est'])).reset_index().rename(columns={0:'num_vaccines_per_capita'})

~\anaconda3\envs\r-tensorflow\lib\site-packages\pandas\core\frame.py in getitem(self, key)
2904 if self.columns.nlevels > 1:
2905 return self._getitem_multilevel(key)
-> 2906 indexer = self.columns.get_loc(key)
2907 if is_integer(indexer):
2908 indexer = [indexer]

~\anaconda3\envs\r-tensorflow\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
2898 return self._engine.get_loc(casted_key)
2899 except KeyError as err:
-> 2900 raise KeyError(key) from err
2901
2902 if tolerance is not None:

KeyError: 'total_vaccinations_int'

Color coded clicks on map

Feedback indicates that it is not clear that the map clicks change the plots on the side of tab-1. Also, maybe lacking clarity with regards to which locality is selected.
Please update choropleth map to have selected localities turn red and stay that way until next selection is made.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.