ubco-mds-2020-labs / covid_vaccine_dashboard Goto Github PK
View Code? Open in Web Editor NEWUSA & Canada COVID-19 Vaccination Rollout Dashboard
Home Page: https://covid-vaccine-dashboard.herokuapp.com/
License: GNU General Public License v3.0
USA & Canada COVID-19 Vaccination Rollout Dashboard
Home Page: https://covid-vaccine-dashboard.herokuapp.com/
License: GNU General Public License v3.0
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'
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.
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.
Improve readability by adding commas to summary stats on dashboard
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.