Plot your data on a geographic map.
This is a python code showing how to plot data on a geographic map using the folium package. In this example code, we plot a number of counts per French departments. The shape of the departments are provided as a geojson file. The geojson file used for this code was obtained from Geofla. The counts are provided in a separate file. You can modify those two data files to plot your own data on your own maps.
You can install the required libraries by typing the following in your terminal: ''' pip install -r requirements.txt ''' To run the code simply type: ''' python mapyourdata.py ''' Then open the resulting departments.html file in your favorite browser.
This code is under the FreeBSD license (see LICENSE.txt).