Skip to content

Commit bc70a3b

Browse files
committed
Fixed continents URL in Plotly example
1 parent 8a9d5c3 commit bc70a3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,8 +3384,8 @@ from plotly.express import line
33843384
```python
33853385
covid = pd.read_csv('https://covid.ourworldindata.org/data/owid-covid-data.csv',
33863386
usecols=['iso_code', 'date', 'total_deaths', 'population'])
3387-
continents = pd.read_csv('https://datahub.io/JohnSnowLabs/country-and-continent-codes-' + \
3388-
'list/r/country-and-continent-codes-list-csv.csv',
3387+
continents = pd.read_csv('https://gist.githubusercontent.com/stevewithington/20a69c0b6d2ff'
3388+
'846ea5d35e5fc47f26c/raw/country-and-continent-codes-list-csv.csv',
33893389
usecols=['Three_Letter_Country_Code', 'Continent_Name'])
33903390
df = pd.merge(covid, continents, left_on='iso_code', right_on='Three_Letter_Country_Code')
33913391
df = df.groupby(['Continent_Name', 'date']).sum().reset_index()

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,8 +2734,8 @@
27342734

27352735
<div><h4 id="coviddeathsbycontinent">Covid deaths by continent:</h4><p></p><div id="2a950764-39fc-416d-97fe-0a6226a3095f" class="plotly-graph-div" style="height:340px; width:100%;"></div><pre><code class="python language-python hljs">covid = pd.read_csv(<span class="hljs-string">'https://covid.ourworldindata.org/data/owid-covid-data.csv'</span>,
27362736
usecols=[<span class="hljs-string">'iso_code'</span>, <span class="hljs-string">'date'</span>, <span class="hljs-string">'total_deaths'</span>, <span class="hljs-string">'population'</span>])
2737-
continents = pd.read_csv(<span class="hljs-string">'https://datahub.io/JohnSnowLabs/country-and-continent-codes-'</span> + \
2738-
<span class="hljs-string">'list/r/country-and-continent-codes-list-csv.csv'</span>,
2737+
continents = pd.read_csv(<span class="hljs-string">'https://gist.githubusercontent.com/stevewithington/20a69c0b6d2ff'</span>
2738+
<span class="hljs-string">'846ea5d35e5fc47f26c/raw/country-and-continent-codes-list-csv.csv'</span>,
27392739
usecols=[<span class="hljs-string">'Three_Letter_Country_Code'</span>, <span class="hljs-string">'Continent_Name'</span>])
27402740
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>)
27412741
df = df.groupby([<span class="hljs-string">'Continent_Name'</span>, <span class="hljs-string">'date'</span>]).sum().reset_index()

0 commit comments

Comments
 (0)