We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ff1e19 commit dea3e99Copy full SHA for dea3e99
1 file changed
climada/entity/exposures/base.py
@@ -1132,7 +1132,7 @@ def write_hdf5(self, file_name):
1132
"""
1133
LOGGER.info("Writing %s", file_name)
1134
store = pd.HDFStore(file_name, mode="w")
1135
- geocols = self.gdf.columns[self.gdf.dtypes == "geometry"].to_list()
+ geocols = self.data.columns[self.data.dtypes == "geometry"].to_list()
1136
pandas_df = self.data.to_wkb()
1137
1138
# Avoid pandas PerformanceWarning when writing HDF5 data
0 commit comments