Mapping with Altair and Folium

Although we love QGIS we prefer programmatic solutions when we have to visualize data. The Python ecosystem offers excellent tools to produce interactive and static maps. We tested Altair and Folium on the same dataset.

We are not GIS experts, so we go for easy-to-use solutions whenever we have to work with geodata. QGIS is a fantastic open source software that brings digital mapping to the masses for free. Its plugins make online mapping a blast. However, we prefer programmatic solutions because they are more flexible. The geopandas package extends pandas with geospatial capabilities, allowing one to work with panadas-like dataframes. The geopandas package works well with the two main mapping tools, Altair and Folium. Using Altair is simple, one can build interactive maps within a few hours. The only downside of Altair is the limited ability of customization. Folium unites the data processing capabilities of Python with Leaflet.js, the best open source web mapping tool. The package allows you to make fully customized maps, but this comes with a steeper learning curve.

We made Altarir– and Folium-based interactive maps using our country rankings dataset. The code base of the project can be found on GitHub.

One-Time
Monthly
Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

¤5.00
¤15.00
¤100.00
¤5.00
¤15.00
¤100.00
¤5.00
¤15.00
¤100.00

Or enter a custom amount


Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly

Do you like our visualizations? Buy them for yourself!

Visit our shop on Society6 to get a printout of our vizs.

Posted In: