Skip to content

Instantly share code, notes, and snippets.

@wagamama
Last active November 1, 2015 03:47
Show Gist options
  • Select an option

  • Save wagamama/c3af800c463859c64d4d to your computer and use it in GitHub Desktop.

Select an option

Save wagamama/c3af800c463859c64d4d to your computer and use it in GitHub Desktop.
import folium
import pandas as pd
TPE_COORDINATES = (25.0375167, 121.5637)
map_tpe = folium.Map(location=TPE_COORDINATES, zoom_start=12)
water = pd.read_csv('water.csv', encoding='big5')
for each in water.iterrows():
lat, lon = each[1][8], each[1][9]
map_tpe.simple_marker(location=(lat, lon), popup=each[1][1], clustered_marker=True)
map_tpe.create_map('water.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment