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?