Skip to main content

You could just create new columns based on your point geometry, round it, and then use drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x, 5)
gdf["y"] = round(gdf.geometry.y, 5)

gdf.drop_duplicates(["location_name", "equipment", "x", "y"])

You could just create new columns based on your point geometry, round it, and then use drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x, 5)
gdf["y"] = round(gdf.geometry.y, 5)

gdf.drop_duplicates(["location_name", "equipment", "x", "y"])

You could just create new columns based on your point geometry, round it, and then use drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x, 5)
gdf["y"] = round(gdf.geometry.y, 5)

gdf.drop_duplicates(["location_name", "equipment", "x", "y"])
added 120 characters in body
Source Link
Taras
  • 34k
  • 4
  • 73
  • 148

You could just create new columns based on your point geometry, round it, and then use drop_duplicates()drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x,5)
gdf["y"] = round(gdf.geometry.y,5)

gdf.drop_duplicates(["location_name","equipment","x","y"])
gdf["x"] = round(gdf.geometry.x, 5)
gdf["y"] = round(gdf.geometry.y, 5)

gdf.drop_duplicates(["location_name", "equipment", "x", "y"])

You could just create new columns based on your point geometry, round it, and then use drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x,5)
gdf["y"] = round(gdf.geometry.y,5)

gdf.drop_duplicates(["location_name","equipment","x","y"])

You could just create new columns based on your point geometry, round it, and then use drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x, 5)
gdf["y"] = round(gdf.geometry.y, 5)

gdf.drop_duplicates(["location_name", "equipment", "x", "y"])
Source Link
NielsFlohr
  • 246
  • 1
  • 6

You could just create new columns based on your point geometry, round it, and then use drop_duplicates(), e.g.:

gdf["x"] = round(gdf.geometry.x,5)
gdf["y"] = round(gdf.geometry.y,5)

gdf.drop_duplicates(["location_name","equipment","x","y"])