Here is a basic example of extracting a placename (e.g. like China, Wuhan) and using a geocoding service to find the lat/long. It also shows how to plot those onto a Heatmap.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# This notebook will read in data that contains a placename (e.g. China, Wuhan,etc) and then use the geopy packages to convert that name into coordinates to plot on a map."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\ProgramData\\Anaconda3\\lib\\site-packages\\tqdm\\std.py:658: FutureWarning: The Panel class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version\n",
" from pandas import Panel\n"
This file has been truncated. show original