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
""" | |
And example of a python code that uses the folium library to create a lightweight | |
leaflet web map. The example uses a GeoJSON file that is added to the map. | |
Folium documentation: | |
http://python-visualization.github.io/folium/docs-master/ | |
How to add popups and cluster markers: | |
https://ocefpaf.github.io/python4oceanographers/blog/2015/12/14/geopandas_folium/ | |
Leaflet maps from leaflet-providers: | |
https://leaflet-extras.github.io/leaflet-providers/preview/ |
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
# -*- coding: utf-8 -*- | |
import csv | |
from tempfile import NamedTemporaryFile | |
import shutil | |
readfile = "SOME\\PATH\\input.csv" | |
writefile = "SOME\\PATH\\output.csv" | |
tempfile = NamedTemporaryFile(delete=False) | |
with open(readfile, 'rb') as csvfilein, tempfile: |
OlderNewer