【发布时间】:2019-08-03 22:29:04
【问题描述】:
我正在运行一个简单的示例:
import gmaps
import gmaps.datasets
gmaps.configure(api_key="...")
earthquake_df = gmaps.datasets.load_dataset_as_df( 'earthquakes' )
locations = earthquake_df[[ 'latitude' , 'longitude' ]]
weights = earthquake_df[ 'magnitude' ]
fig = gmaps.figure()
fig.add_layer(gmaps.heatmap_layer(locations, weights=weights))
fig
但输出没有看到热图,而是显示:
Figure(layout=FigureLayout(height='420px'))
我正在使用 Spyder (Python 3.7)
【问题讨论】:
标签: google-maps anaconda spyder python-3.7