0
map.choropleth(geo_path=countries, data=to_plot,
           columns=['CountryCode', 'Value'],
            key_on='feature.id',
            fill_color='YlGnBu', fill_opacity=0.7, line_opacity=.5)

I am getting the error below, and the code is copied verbatim (except for the exclusion of legend title) from a source that works, so I'm at a loss

JSONDecodeError: Expecting value: line 7 column 1 (char 6)

Thanks

Tom Dixon
  • 96
  • 1
  • 9
  • This isn't a code problem; it's a data problem. What are the values of `countries` and `to_plot`? – John Gordon Jul 31 '17 at 02:21
  • @JohnGordon I think you're right. The JSON file pointing to countries doesn't have any country codes or anything that looks like geometries to me. – Tom Dixon Jul 31 '17 at 13:23
  • HI, what is type and value of `countries`? And could you update your question with a sample of the json? – Bob Haffner Aug 05 '17 at 16:06

0 Answers0