darbia.utils.pandas_utils
#
Utility functions.
Module Contents#
Functions#
|
Load a sheet from a spreadsheet. |
- darbia.utils.pandas_utils.load_sheet(logger: logging.Logger, data_path: pathlib.Path, file_name: str, sheet_name: str) list[dict] [source]#
Load a sheet from a spreadsheet.
- Parameters:
logger – logger
data_path – path to the data directory
file_name – name of the spreadsheet
sheet_name – name of the sheet
- Returns:
list of dicts representing the rows in the sheet
- Return type:
data