From d571e35fa0075c8db4229e85b1470f3fe2b7060c Mon Sep 17 00:00:00 2001 From: patalanov Date: Thu, 16 Apr 2020 02:23:07 -0300 Subject: [PATCH] added top15 table --- covid19.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/covid19.py b/covid19.py index 832a707..f649d93 100644 --- a/covid19.py +++ b/covid19.py @@ -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