mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-09 11:22:50 +08:00
REF: use augmented assignments where feasible (#2370)
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ def _get_geometry_type(gdf):
|
||||
|
||||
# Check for 3D-coordinates
|
||||
if any(gdf.geometry.has_z):
|
||||
target_geom_type = target_geom_type + "Z"
|
||||
target_geom_type += "Z"
|
||||
|
||||
return target_geom_type, has_curve
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ def _overlay_union(df1, df2):
|
||||
# keep geometry column last
|
||||
columns = list(dfunion.columns)
|
||||
columns.remove("geometry")
|
||||
columns = columns + ["geometry"]
|
||||
columns.append("geometry")
|
||||
return dfunion.reindex(columns=columns)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user