I have a geodataframe with many polygons. I'd like to automate differencing with a loop, to do this with each preceding and following polygon and add them to a new gdf:
new_gdf = polygon[0:1].overlay(polygon[1:2], how='difference')
I am able to do this one at a time, but I'd like to find a more efficient way, especially when I will (someday) have a lot of polygons.
Would anyone have an idea of how I might do this? I'm trying to use iterrows(), but am failing on the exact syntax.
Thank you in advance.

