How to extract biggest Polygon from MultiPolygon in GeoPandas?
Here's what I would do:
max(multipolygon, key=lambda a: a.area)
The built-in max function used this way will return the item from the list where lambda a: a.area
is maximized.
Here's what I would do:
max(multipolygon, key=lambda a: a.area)
The built-in max function used this way will return the item from the list where lambda a: a.area
is maximized.