Skip to content

Commit 5e8e583

Browse files
refactor Exposures.write_hdf5
1 parent 297326e commit 5e8e583

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=False):
11451145
pandas_df[col] = np.asarray(self.data[col])
11461146
else:
11471147
wkb_data[col] = to_wkb_store(self.geometry)
1148-
pandas_df.drop(columns=["geometry"])
1148+
pandas_df.drop(columns=[col], inplace=True)
11491149

11501150
# Avoid pandas PerformanceWarning when writing HDF5 data
11511151
with warnings.catch_warnings():

0 commit comments

Comments
 (0)