我已经使用gmap创建了一个热图,它允许我在Jupyter笔记本中滚动。但是,如果我可以在Power Point中使用相同的机制,将会有更多帮助。另外,我想合并一个小部件并在PowerPoint中使用它。我该如何实现?我想让我的简报互动。
import pandas as pd
from gmplot import gmplot
import gmaps
import ipywidgets as widgets
gmaps.configure(api_key="mykey")
Waste = "C:\Python\Waste.xls"
data = pd.read_excel(Waste, encoding = "ISO-8859-1", sheet_name = 'Spend')
locations = data[['Latitude', 'Longitude']]
Spend = data['Spend']
fig = gmaps.figure(map_type='ROADMAP')
markers = gmaps.marker_layer(locations)
fig.add_layer(markers)
fig.add_layer(gmaps.heatmap_layer(locations, weights=Spend, dissipating = True, point_radius = 10, max_intensity = 200000))
fig