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

Choropleth map issue variable issue in plotly

When trying to get rid of the three loops of lists to help speed this slow custom choropleth figure I get an error but the version on the left doesn’t return any errors.

From looking at it these return the same type so confused as to why it would do this?

Hey @emmc15
I’m not sure but the following steps should help you understand why:

After your for function but before you start your scattermapbox, do

print (type(lats))
print (lats[0:5])