Created
May 20, 2020 09:59
-
-
Save LowriWilliams/f16354cf8784091c9b93e3749ff2479a to your computer and use it in GitHub Desktop.
corona/map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 245, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div style=\"width:100%;\"><div style=\"position:relative;width:100%;height:0;padding-bottom:60%;\"><iframe src=\"data:text/html;charset=utf-8;base64,PCFET0NUWVBFIGh0bWw+CjxoZWFkPiAgICAKICAgIDxtZXRhIGh0dHAtZXF1aXY9ImNvbnRlbnQtdHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PVVURi04IiAvPgogICAgCiAgICAgICAgPHNjcmlwdD4KICAgICAgICAgICAgTF9OT19UT1VDSCA9IGZhbHNlOwogICAgICAgICAgICBMX0RJU0FCTEVfM0QgPSBmYWxzZTsKICAgICAgICA8L3NjcmlwdD4KICAgIAogICAgPHNjcmlwdCBzcmM9Imh0dHBzOi8vY2RuLmpzZGVsaXZyLm5ldC9ucG0vbGVhZmxldEAxLjUuMS9kaXN0L2xlYWZsZXQuanMiPjwvc2NyaXB0PgogICAgPHNjcmlwdCBzcmM9Imh0dHBzOi8vY29kZS5qcXVlcnkuY29tL2pxdWVyeS0xLjEyLjQubWluLmpzIj48L3NjcmlwdD4KICAgIDxzY3JpcHQgc3JjPSJodHRwczovL21heGNkbi5ib290c3RyYXBjZG4uY29tL2Jvb3RzdHJhcC8zLjIuMC9qcy9ib290c3RyYXAubWluLmpzIj48L3NjcmlwdD4KICAgIDxzY3JpcHQgc3JjPSJodHRwczovL2NkbmpzLmNsb3VkZmxhcmUuY29tL2FqYXgvbGlicy9MZWFmbGV0LmF3ZXNvbWUtbWFya2Vycy8yLjAuMi9sZWFmbGV0LmF3ZXNvbWUtbWFya2Vycy5qcyI+PC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lPSJ3aWR0aDogMTAwLjAlOyBoZWlnaHQ6IDEwMC4wJTsiPjxicj4gQ29uZmlybWVkIGNhc2VzOiAxMzA8L2Rpdj5gKVswXTsKICAgICAgICAgICAgcG9wdXBfMWNmZGIxMGNhNjBkNGZmNmFhMGZkMWU2NmJjZjA2Nzkuc2V0Q29udGVudChodG1sXzc2ODAwYWE5MGEwNjQ4ZDNiNmYzZjE5NzBjY2E4NDNmKTsKICAgICAgICAKCiAgICAgICAgY2lyY2xlX21hcmtlcl80NTBiM2I4MTMwNmU0YTgzYjZmZjIwMWIwZjAwMTA3NS5iaW5kUG9wdXAocG9wdXBfMWNmZGIxMGNhNjBkNGZmNmFhMGZkMWU2NmJjZjA2NzkpCiAgICAgICAgOwoKICAgICAgICAKICAgIAo8L3NjcmlwdD4=\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>" | |
], | |
"text/plain": [ | |
"<folium.folium.Map at 0x123068ef0>" | |
] | |
}, | |
"execution_count": 245, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"import folium\n", | |
"\n", | |
"# Select only countries with more than 0 cases\n", | |
"\n", | |
"df_country = df_country[df_country.Confirmed != 0]\n", | |
"\n", | |
"# Normalise data by dividing total number of cases in China with 25k and 50 for the remaining countries\n", | |
"\n", | |
"df_country['Normalise'] = np.where(df_country['Country'] == 'China', \n", | |
" df_country['Confirmed']/25000, \n", | |
" df_country['Confirmed']/50)\n", | |
"\n", | |
"# Creat folium map\n", | |
"\n", | |
"folium_map = folium.Map(location=[df_country['Lat'].mean(), df_country['Long'].mean()], \n", | |
" zoom_start = 2, \n", | |
" tiles = \"CartoDB dark_matter\")\n", | |
"\n", | |
"# Iterate over rows in dataframe\n", | |
"for index, row in df_country.iterrows():\n", | |
" popup_text = \"<br> Confirmed cases: {}\"\n", | |
" popup_text = popup_text.format(row[\"Confirmed\"])\n", | |
" \n", | |
" # Assign different colours to different numbers of confirmed cases\n", | |
" \n", | |
" if 1 <= row['Confirmed'] <= 100:\n", | |
" color = \"#007849\" # green\n", | |
" elif 101 <= row['Confirmed'] <= 500:\n", | |
" color = \"#FFCE00\" # yellow \n", | |
" else:\n", | |
" color = \"#E63029\" # red\n", | |
" \n", | |
" # Add marker to the map\n", | |
" folium.CircleMarker(location=(row[\"Lat\"], row[\"Long\"]),\n", | |
" radius=row[\"Normalise\"],\n", | |
" color= color,\n", | |
" popup=popup_text,\n", | |
" fill=True).add_to(folium_map)\n", | |
" \n", | |
"folium_map" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.7.2" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment