3 ms·
I make extensive use of geopandas and plotly for doing mapping and it’s very difficult for me to imagine it could get all that much easier. Dump my geo data fra
by ZeroCool2u 4y ago
I make extensive use of geopandas and plotly for doing mapping and it’s very difficult for me to imagine it could get all that much easier. Dump my geo data frame in and specify which columns to use and boom you’ve got a fully interactive map with Open Street Maps data underneath. It even has a variety of themes to choose from!
- randomluck040 4y agoCouldn’t you e.g. use KeplerGL or something like Folium to plot data on a basemap?
- ZeroCool2u 4y agoSure, maybe. I wouldn't bother though, because it's basically a single line in Plotly to do this. (Though I freely admit there are quite a few parameters for that one line.) See: https://plotly.com/python/mapbox-county-choropleth/#using-geopandas-data-frames https://plotly.com/python/mapbox-county-choropleth/#using-ge...
- wodenokoto 4y agoI've had a lot of trouble with plotly maps and too many layers and moved to folium, which isn't easier, but results are more stable. (it is easier for simple plots, when using `gdf.explore()` and you can keep adding layers with `m = gdf.explore(); gdf2.explore(m=m)` With that being said, tidyverse is much easier than pandas for EDA (though there is something to be said about the less stable API when it comes to production) Plotly also exists for R and works good too.