petern48 commented on code in PR #2486:
URL: https://github.com/apache/sedona/pull/2486#discussion_r2515537108
##########
python/sedona/spark/geopandas/geoseries.py:
##########
@@ -1123,6 +1123,14 @@ def union_all(self, method="unary", grid_size=None) ->
BaseGeometry:
geom = ps_series.iloc[0]
return geom
+ def intersection_all(self) -> BaseGeometry:
Review Comment:
```suggestion
def intersection_all(self) -> BaseGeometry:
if len(self) == 0:
from shapely.geometry import GeometryCollection
return GeometryCollection()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]