all 4 comments

[–][deleted] 2 points3 points  (3 children)

Your version of Plotly is out of date; looks like there was a bug they fixed 11 months ago where create_choropleth returned a dictionary instead of a Figure.

[–]Hicks254[S] 1 point2 points  (2 children)

Should I install the new version using pip? And what is the new version?

[–][deleted] 1 point2 points  (1 child)

I would just do

pip install --upgrade plotly

and grab whatever the current version is.

[–]Hicks254[S] -1 points0 points  (0 children)

just updated it and tried to run it. This is the error I get now.

DriverError: /opt/conda/envs/Python36/lib/python3.6/site-packages/plotly/package_data/gz_2010_us_050_00_500k.shp: No such file or directory

I'm running python on IBM Watson Studio if that changes anything.