I have a creating a list of shapely polygons. While I am trying to create a geodataframe from that list it gives an error:
intersec_ls = [poly1, poly2, poly3]
cu = cascaded_union(intersec_ls)
differ = buffer.difference(cu)
fin_ls.append(differ)
fin_ls.append(intersec_ls)
geom = gpd.GeoSeries(fin_ls)
gdf = gdf( geometry= geom)
TypeError: Input must be valid geometry objects: [<shapely.geometry.polygon.Polygon object at 0x00000213702BEDA0>]
How can I deal with invalid geometry in the list?