Skip to content

Commit

Permalink
Remove not needed .copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
joroeder committed Apr 20, 2023
1 parent 1a861c3 commit c6cbe11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/optimisation/import_osm_invest/import_osm_invest.py
Expand Up @@ -75,8 +75,7 @@

# Make sure that only polygon geometries are used
gdf_poly_houses = gdf_poly_houses[gdf_poly_houses['geometry'].apply(
lambda x: isinstance(x, geometry.Polygon)
)].copy()
lambda x: isinstance(x, geometry.Polygon))]

# Remove nodes column (that make somehow trouble for exporting .geojson)
gdf_poly_houses.drop(columns=['nodes'], inplace=True)
Expand Down

0 comments on commit c6cbe11

Please sign in to comment.