dgpost.utils package

dgpost.utils.extract(obj: dict | DataFrame | DataTree | None, spec: dict, index: Index | None = None) DataFrame
dgpost.utils.transform(table: DataFrame, withstr: str, using: list[dict]) None
dgpost.utils.load(path: str, check: bool | None = None, type: str = 'netcdf') dict | DataFrame
dgpost.utils.parse(fn: str) dict[str, Any]

Input file parsing function.

Supports loading yaml and json files using the recipe-parsing function and schema provided in the dgbowl_schemas.dgpost.recipe module.

Parameters:

fn – Path to the filename to be parsed

Returns:

ret – A dictionary representing the recipe.

Return type:

dict[str, Any]

dgpost.utils.save(table: DataFrame, path: str, type: str | None = None, columns: list[str] | None = None, sigma: bool = True, meta: dict | None = None) None
dgpost.utils.plot(table: DataFrame, ax_args: list[dict], save: dict, style: dict | None = None, fig_args: dict | None = None, **grid_args)
dgpost.utils.pivot(table: DataFrame, using: str | list[str], columns: list[str] | None = None, timestamp: str = 'first', timedelta: str | None = None) DataFrame

Submodules