Item 381of GeoJSON will not load?

I do not understand at all what is going on here. I'm trying to load a geojson of congressional districts that I've merged with additional information about each congressman using the geopandas library.

Every district loads except for the 30th district of texas.

image

I went back to geopandas and pulled out just that row of the dataframe and converted it back to a geojson and it loads fine.

At this point, I just tried googling and couldn't really find a good answer so I deleted that row and appended it to the end.

image

Now Texas 30 loads correctly but instead Florida 22 does not.

image

I have no idea how this makes any sense but when the district in Texas was not loading, it had been row 381 of the dataframe, after removing it Florda 22 is row 381 of the dataframe.

If I just duplicate row 381, it loads 435 objects correctly.

Am I missing something here?

Did you look at row 380 (the previous row), perhaps a syntax error in the geojson file.

Thanks, I don't know why it didn't occur to me to try that.

Wiping out item 380 seems to resolve the issue for the rest so I'll play around and see if I can figure out what's wrong with that entry.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.