Skip to content

Commit

Permalink
added top15 table
Browse files Browse the repository at this point in the history
  • Loading branch information
patalanov committed Apr 16, 2020
1 parent d0aa3c3 commit d571e35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions covid19.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def main():
top10_countries, top10_columns, top10_with_datetimes = get_top_10()
# show evolution for top x countries in number of cases
st.header('Top 15 countries in number of cases')
# style it
cm = sns.light_palette("red", as_cmap=True)
# show table
st.table(top10_columns[-1:].style.background_gradient(cmap=cm, axis=0))
# chart it
st.line_chart(top10_columns)
# Start querying for prediction
Expand Down

0 comments on commit d571e35

Please sign in to comment.