pudl.load
#
Routines for loading PUDL data into various storage formats.
Module Contents#
Functions#
|
Load a dictionary of dataframes into the PUDL SQLite DB. |
Attributes#
- pudl.load.dfs_to_sqlite(dfs: dict[str, pandas.DataFrame], engine: sqlalchemy.engine.Engine, check_foreign_keys: bool = True, check_types: bool = True, check_values: bool = True) None [source]#
Load a dictionary of dataframes into the PUDL SQLite DB.
- Parameters:
dfs – Dictionary mapping table names to dataframes.
engine – PUDL DB connection engine.
check_foreign_keys – if True, enforce foreign key constraints.
check_types – if True, enforce column data types.
check_values – if True, enforce value constraints.