I am working in Jupyter Notebook and overlaying two GeoJSON files. One is property, the other is council zones.
I am selecting the property id's and then clipping the zones that lie within the extent
ITT_PROP_select = ITT_PROP.query("(PROPID == 40932672)")
ITT_PROP_select
select = gpd.clip(ITT_Zone, ITT_PROP_select)
select
However when using the code below, I am unable to add a new column and calculate the areas for each row.
from shapely.geometry import shape
for i in range(len(select)):
select.loc[i, 'area_m2'] = shape(select.loc[i,'geometry']).area
The code returns:
KeyError: 0

