2

我正在研究一个数据集,其中包含按社区划分的巴黎建筑物租金以及 gps 坐标。我想使用我的数据集的地理坐标制作租金热图。 数据框的图像

知道如何进行吗?

我试过这段代码,但它不起作用:

from ipyleaflet import Map, Heatmap
from random import uniform

center = (48.856614, 2.3522219) #we place the center of the map on the gps coordinates of Paris(city)
m = Map(center=center, zoom=12)


heatmap = Heatmap(
    locations=[df['geo_point_2d']], #we get the gps coordinates of the 'geo_point_2d' column in df
    radius=20
)

m.add_layer(heatmap);

m

我是 Jupiter Notebook 的初学者...

谢谢您的帮助 !

朱利安

4

0 回答 0