Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61ddf84

Browse files
committed
Updated plots
1 parent 800497b commit 61ddf84

File tree

7 files changed

+693
-433
lines changed

7 files changed

+693
-433
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ continents = pd.read_csv('https://datahub.io/JohnSnowLabs/country-and-continent-
33673367
df = pd.merge(covid, continents, left_on='iso_code', right_on='Three_Letter_Country_Code')
33683368
df = df.groupby(['Continent_Name', 'date']).sum().reset_index()
33693369
df['Total Deaths per Million'] = df.total_deaths * 1e6 / df.population
3370-
df = df[('2020-03-14' < df.date) & (df.date < '2020-10-26')]
3370+
df = df[('2020-03-14' < df.date) & (df.date < '2020-11-08')]
33713371
df = df.rename({'date': 'Date', 'Continent_Name': 'Continent'}, axis='columns')
33723372
line(df, x='Date', y='Total Deaths per Million', color='Continent').show()
33733373
```

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213

214214
<body>
215215
<header>
216-
<aside>July 2, 2020</aside>
216+
<aside>November 10, 2020</aside>
217217
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
218218
</header>
219219

@@ -2858,7 +2858,7 @@
28582858
df = pd.merge(covid, continents, left_on=<span class="hljs-string">'iso_code'</span>, right_on=<span class="hljs-string">'Three_Letter_Country_Code'</span>)
28592859
df = df.groupby([<span class="hljs-string">'Continent_Name'</span>, <span class="hljs-string">'date'</span>]).sum().reset_index()
28602860
df[<span class="hljs-string">'Total Deaths per Million'</span>] = df.total_deaths * <span class="hljs-number">1e6</span> / df.population
2861-
df = df[(<span class="hljs-string">'2020-03-14'</span> &lt; df.date) &amp; (df.date &lt; <span class="hljs-string">'2020-10-26'</span>)]
2861+
df = df[(<span class="hljs-string">'2020-03-14'</span> &lt; df.date) &amp; (df.date &lt; <span class="hljs-string">'2020-11-08'</span>)]
28622862
df = df.rename({<span class="hljs-string">'date'</span>: <span class="hljs-string">'Date'</span>, <span class="hljs-string">'Continent_Name'</span>: <span class="hljs-string">'Continent'</span>}, axis=<span class="hljs-string">'columns'</span>)
28632863
line(df, x=<span class="hljs-string">'Date'</span>, y=<span class="hljs-string">'Total Deaths per Million'</span>, color=<span class="hljs-string">'Continent'</span>).show()
28642864
</code></pre></div>
@@ -2990,7 +2990,7 @@
29902990

29912991

29922992
<footer>
2993-
<aside>July 2, 2020</aside>
2993+
<aside>November 10, 2020</aside>
29942994
<a href="../" rel="author">Jure Šorn</a>
29952995
</footer>
29962996

0 commit comments

Comments
 (0)