Skip to content

Commit

Permalink
drop_duplicates(subset="id")
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-ninja committed Aug 13, 2024
1 parent df9a7cf commit fe43cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batch_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
shorelines.set_index("id", inplace=True)

# Transects, origin is landward
transects_gdf = gpd.read_file("transects.geojson").to_crs(CRS)
transects_gdf = gpd.read_file("transects.geojson").to_crs(CRS).drop_duplicates(subset="id")
transects_gdf.set_index("id", inplace=True)

print(f"{time.time() - start}: Reference polygons and shorelines loaded")
Expand Down

0 comments on commit fe43cde

Please sign in to comment.