hydromt_fiat.workflows.exposure_add_columns#

hydromt_fiat.workflows.exposure_add_columns(exposure_data: GeoDataFrame, columns: list[str], values: int | float | str | list[int | float | str] | ndarray[tuple[int, ...], dtype[int64 | float64 | str_]]) GeoDataFrame[source]#

Add columms to an existing exposure dataset.

Parameters:
  • exposure_data (gpd.GeoDataFrame) – The exposure dataset.

  • columns (list[str]) – List of names to be added as columns.

  • values (int | float | str | list | np.ndarray) – The value(s) be set.

Returns:

The exposure data with the added columns.

Return type:

gpd.GeoDataFrame