这是我使用过的代码,但我一直使用 Figure(layout=FigureLayout(height='420px'))
作为输出。我如何得到实际的地图来显示
import gmaps
from config import gkey
gmaps.configure(api_key=gkey)
locations = file_df[["Latitude", "Longitude"]]
weight = file_df["Humidity"]
fig = gmaps.figure()
fig.add_layer(gmaps.heatmap_layer(locations, weights = weight, max_intensity = 100))
fig
目前没有回答
相关问题 更多 >
编程相关推荐