data = pd.read_csv("organization.csv", names=['organization_name', 'latitude', 'longitude'])
m = folium.Map(location=[20,0], tiles='Mapbox Bright', zoom_start=2)
for i in range(len(data)):
folium.Marker([data.iloc[i]['longitude'], data.iloc[i]['latitude']], popup=data.iloc[i]['organization_name']).add_to(m)
如何解决此错误?
data = pd.read_csv("organization.csv", names=['organization_name', 'latitude', 'longitude'])
m = folium.Map(location=[20,0], tiles='Mapbox Bright', zoom_start=2)
for i in range(len(data)):
long = float(data.iloc[i]['longitude'])
lat = float(data.iloc[i]['latitude'])
popup = folium.Popup(data.iloc[i]['organization_name'], parse_html=True)
folium.Marker([lat, long], str(popup)).add_to(m)
输出只是一个空白的白框,没有错误消息。