ValueError: No valid geometry column types ({None, 'Point'}), it has to be one of the next type sets: [{'Point'}, {'MultiPoint'}, {'LineString'}, {'MultiLineString'}, {'LineString', 'MultiLineString'}, {'Polygon'}, {'MultiPolygon'}, {'MultiPolygon', 'Polygon'}].
when doing
from cartoframes.viz import Map, Layer
Map([Layer(geo_gdf)])
The workaround is pretty easy:
from cartoframes.viz import Map, Layer
Map([Layer(geo_gdf[geo_gdf.the_geom != None])])
but we can do it more straightforward by just removing the None from the set (None can be returned by the geocoder if no results are found for a given address for example).
The error was:
when doing
The workaround is pretty easy:
but we can do it more straightforward by just removing the
None
from the set (None
can be returned by the geocoder if no results are found for a given address for example).