I am looking to set a coordinate system for every GeoDataFrame in a list of them. So I need this:

gdfs[0].crs = "EPSG:6668"
gdfs[1].crs = "EPSG:6668"

And so on but iteratively. I tried:

([gdfs.crs = "EPSG:6668"] for file in gdfs)


for file in gdfs:
    gdfs.crs = "EPSG:6668"

But not working, any solution?

1 Answer 1

for gdf in gdfs:
    gdf.crs = "EPSG:6668"


for i in range(len(gdfs)):
   gdfs[i].crs = "EPSG:6668"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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