saco.Dataset.set_tables

Dataset.set_tables(tables: Dict[str, DataFrame])

Set data attributes of tables.

This method can be used to set the data attribute of a table for the first time or it can be used to override the existing data attribute. Dataframe indexes must have been set before being passed in via the tables argument.

Parameters:

tables – Keys are table short_name attributes and values are dataframes.

Notes

Valid dictionary keys for the tables argument are (alongside the relevant full table names):

  • ‘swabs’: SWABS_NBB (point surface water abstractions)

  • ‘gwabs’: GWABs_NBB (point groundwater abstractions)

  • ‘dis’: Discharges_NBB (point surface water discharges)

  • ‘sup’: SupResGW_NBB (point “complex impacts”)

  • ‘qnat’: QNaturalFlows_NBB (waterbody natural flows)

  • ‘wbs’: IntegratedWBs_NBB (waterbody metadata)

  • ‘asbs’ AbsSensBands_NBB (waterbody abstraction sensitivity bands)

  • ‘asb_percs’: ASBPercentages (fractional deviations defining the EFI)

  • ‘efi’: EFI (waterbody environmental flow indicator)

The data attribute of each table can also be set directly (if preferred), for example: Dataset.swabs.data = pd.DataFrame(...).