Last active
February 16, 2017 00:06
-
-
Save Akramz/26ae243730dd1f8ac45bbf8e5de8d19f to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Map init. | |
map_osm = folium.Map() | |
data = pd.read_csv('data.csv') | |
data_ = data[['LATITUDE (HIGH ACCURACY)','LONGITUDE (HIGH ACCURACY)']].astype(float) | |
for index, row in data_.iterrows(): | |
folium.CircleMarker(location=[row["LATITUDE (HIGH ACCURACY)"], row["LONGITUDE (HIGH ACCURACY)"]]).add_to(map_osm) | |
html = map_osm.save('osm.html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment