Unable to generate map after cleaning out data set and matching .geojson keys

Viewed 18

Unable to generate map after cleaning out data set and matching .geojson keys.

Both in my main dataframe (bib) and in the .geojson file (cdmx_nh) I have coordinates, not names.


folium.Choropleth(
    geo_data = cdmx_nh,
    data = listings_map,
    columns = ['listing_id', 'longitude', 'latitude'],
    key_on = 'feature.geometry',
    fill_color = 'YlOrBr', fill_opacity=0.6, line_opacity=0.1,
    legend_name = "listings").add_to(map)
folium.LayerControl().add_to(map)
TypeError: unhashable type: 'dict'.````








0 Answers
Related