Black Lives Matter. Please consider donating to Black Girls Code today.

Mapbox Choropleth Maps Example Broken

I am trying to reproduce the Florida voter registration choropleth example. However, I am really struggling to make it work since the voter registration URL has changed, and the code is Python 2 where I am using Python 3. Please could somebody update the example to use and updated URL and Python 3. Thanks!

@maxwell8888 This a jupyter notebook that generates a mapbox choropleth with Plotly 3.0.0:

Thanks @empet. I have actually come across this before. I wanted to do the Florida voters example above first since it is simpler and I am a beginner.

@maxwell8888 Here is the mapbox choropleth for Florida counties, that works with Python 3.6.4 and Plotly 3.0.2: .

1 Like

@empet that’s great, thank you!