argopy.utils.GreenCoding.measurements

argopy.utils.GreenCoding.measurements#

GreenCoding.measurements(branch: str = 'master', start_date: str | Timestamp = '2024-06-01', end_date: str | Timestamp = None, errors: Literal['raise', 'ignore', 'silent'] = 'ignore') List[Dict][source]#

Return measurements for a given branch and date period

Parameters:
  • branch (str, default='master') โ€“ Name of the branch to retrieve measurements for

  • start_date (str, pandas.Timestamp, default=โ€2024-06-01โ€) โ€“ Measurements starting date, default to the beginning of measurements.

  • end_date (str, pandas.Timestamp, default=None) โ€“ Measurements ending date, default to today

  • errors (Literal, default: ignore) โ€“

    Define how to handle errors raised during data fetching:
    • ignore (default): Do not stop processing, simply issue a debug message in logging console

    • raise: Raise any error encountered

    • silent: Do not stop processing and do not issue log message

Returns:

List of workflows name, ID and measurements as pandas.DataFrame

Return type:

List[Dict]

See also

GreenCoding.workflows