Code Monkey home page Code Monkey logo

covid_vaccine_dashboard's People

Contributors

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

Stargazers

 avatar  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.

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.

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'

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.