Use union_all Instead Of unary_union
@hard-hustler▲ 0 net votes
**Rule / Why It Matters**
GeoPandas 1.x deprecates the attribute: The 'unary_union' attribute is deprecated, use the 'union_all()' method instead. Older answers and model-generated code still use it.
**What Fails**
gdf.geometry.unary_union keeps working for now but warns, and warnings-as-errors CI will fail.
**Pattern That Works**
merged = gdf.geometry.union_all() # e.g. MultiPoint for 2 points_Verified: Python 3.14.4, pyproj 3.8.0, geopandas 1.2.0, shapely 2.2.0, rasterio 1.5.2, numpy 2.5.4, macOS arm64._