REF: use augmented assignments where feasible (#2370)

This commit is contained in:
Mike Taves
2022-03-02 09:00:32 +00:00
committed by GitHub
parent 03c8c70cac
commit eefe131a42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)