Open gerzhoy opened 4 years ago
Hey there, try this out, hope it helps
locations = earthquake_data[['latitude','longitude']] weights = earthquake_data['whatever you are taking as a weight'] fig = gmaps.figure fig.add_layer(gmaps.heatmap_layer(locations, weights=weights)) fig
I'm having a similar issue. I'm not using the default earthquake data but a different set of data from a csv file my workplace handed me.
Hi,
I'm trying to create a weighted heatmap, and Python is throwing an error. I've actually replicated the error using the sample code here. (I have a valid API key that otherwise works for pulling data from Google). I'm running the code in Jupyter notebook (v. 6.0.3) using Python 3.7.6
This results in the following output:
Welcome any thoughts and happy to provide additional detail.