Skip to content

Commit 347f1f9

Browse files
Update climada/entity/exposures/base.py
Co-authored-by: Lukas Riedel <[email protected]>
1 parent ab18675 commit 347f1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/entity/exposures/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ def write_hdf5(self, file_name, pickle_geometry_as_shapely=False):
11451145
if pickle_geometry_as_shapely:
11461146
pandas_df[col] = np.asarray(self.gdf[col])
11471147
else:
1148-
pandas_df[col] = gpd.GeoSeries.to_wkb(pandas_df[col])
1148+
pandas_df[col] = gpd.GeoSeries(pandas_df[col]).to_wkb()
11491149
wkb_columns.append(col)
11501150

11511151
# Avoid pandas PerformanceWarning when writing HDF5 data

0 commit comments

Comments
 (0)