2

This question already has an answer here:

Is there an easy way in geopandas to calcuate polygon areas after an intersection analysis? I am switching from ArcGIS to open source and try to translate my code. In ArcGIS I used:

arcpy.AddGeometryAttributes_management("df1", "AREA", Area_Unit="HECTARES")

marked as duplicate by TomazicM, nmtoken, whyzar, BERA, Vince Oct 8 at 14:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Use the area property of the geometry column:

import geopandas as gpd
df = gpd.read_file('/home/bera/someshapefile.shp')
df['area'] = df.geometry.area #/10000 for hectares

Not the answer you're looking for? Browse other questions tagged or ask your own question.