Last active
November 1, 2015 04:06
-
-
Save wagamama/a9aa984722f1057ddd2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import folium | |
import pandas as pd | |
TPE_COORDINATES = (25.0375167, 121.5637) | |
map_tpe = folium.Map(location=TPE_COORDINATES, zoom_start=12) | |
for i in range(1, 13): | |
trash_can = pd.read_csv('trash_can{}.csv'.format(i)) | |
for each in trash_can.iterrows(): | |
lat, lon = each[1][4], each[1][3] | |
map_tpe.simple_marker(location=(lat, lon), clustered_marker=True) | |
map_tpe.create_map('trash_can.html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment