hydromt.model.components.TablesComponent.set#

TablesComponent.set(tables: DataFrame | Series | dict[str, DataFrame | Series], name: str | None = None) None[source]#

Add (a) table(s) <pandas.DataFrame> to model.

Parameters:
  • tables (pandas.DataFrame, pandas.Series or dict[str, pd.DataFrame | pd.Series]) – Table(s) to add to model. Multiple tables can be added at once by passing a dict of tables.

  • name (str | None, optional) – Name of table, by default None. Required when tables is not a dict.