hydromt_fiat.components.ExposureGeomsComponent.update_column#

ExposureGeomsComponent.update_column(exposure_name: str, columns: list[str], values: int | float | str | list[int | float | str] | ndarray[tuple[int, ...], dtype[int64 | float64 | str_]]) None[source]#

Update an existing dataset by adding columns with values.

Parameters:
  • exposure_name (str) – The name of the existing dataset.

  • columns (list[str]) – A list of the names of the columns.

  • values (int | float | str | list | np.ndarray) – The correspoding values of the columns. Either a single value set for all columns, a list of values corresponding to the number of columns or a 2d array.