I have a GeoDataFrame with the geometry of South America. I wanted to calculate the area and did this the following way:
south_america.geometry.to_crs(epsg=3035)
south_america.loc[:, "AREA"] = south_america.geometry.area / 10**6
totalArea = south_america.AREA.sum()
The result should be 17759005.81506123, but is 0.001547957692761746.
I know that the correct version is:
totalArea = sum(south_america.geometry.to_crs(epsg=3035).area) / 10**6
but I don't understand where the difference is. Can you please explain it to me?