Skip to content

Folium choropleth change/problem in 0.6.0 vs 0.5.0 and 0.4.0 #21

@emiliom

Description

@emiliom

@ocefpaf hopefully you can help me with this. I'm updating my "vector" notebooks for the GeoHackWeek event next week.

I have a Folium choropleth statement that worked last time I ran it, a month ago, with Folium 0.5.0. But the same statement is now failing, with a brand new conda env created today that installed Folium 0.6.0. (the same statement worked as-is with 0.4.0, too). Nothing has changed with the GeoDataFrame I'm using as the data passed to geo_data and data.

The notebook that worked end-to-end, with the rendered Folium choropleth (0.4.0, ran a year ago), is here: https://github.com/emiliom/tutorial_contents/blob/master/vector/notebooks/geopandas_advanced.ipynb (and on nbviewer, to see the folium map). See cell 22.

And here's the notebook from today with the same choropleth statement (cell 23), but where Folium failed:
https://github.com/emiliom/tutorial_contents/blob/emilio_vector/vector/notebooks/geopandas_advanced.ipynb
I'm not able to interpret the error message. I tried looking at the current choropleth API documentation and the 0.6.0 release notes, but couldn't find anything new to explain this. I looked into this change but that didn't help me.

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions