set_growth_baseline()

Set baseline real GDP growth rates for projection years 1 through 5.

Usage

set_growth_baseline(
    ctx,
    records,
    *,
    strict=True,
    empty_measure="write",
)

Updates the growth_baseline named range (Inputs!C16:G16) with the provided growth values. Each record’s OBS_VALUE is assigned to the cell in the growth_baseline range corresponding to its TIME_PERIOD.

Parameters

records: SeriesInput

A list of records, a single record dict, a tidy pandas/polars DataFrame, or a 1-D iterable of measure values in key order.

empty_measure: EmptyMeasure = "write"
How to treat rows with missing measure values (None or float NaN after DataFrame coercion). “write” (default) passes values through; “skip” drops them; “error” raises. Empty key fields always raise. Required record fields: - TIME_PERIOD: Projection year. - OBS_VALUE: Real GDP growth rate in percent per annum. Optional record fields: - INDICATOR: Economic indicator for the series. If supplied, expected value: “real_gdp_growth”. - UNIT_MEASURE: Unit of measure for the observation value. If supplied, expected value: “PERCENT_PER_ANNUM”.

Returns

None: None
Applies the input updates to ctx.

Source Binding

Workbook range: Inputs!C16:G16 Layout: series Value type: float

Examples

set_growth_baseline(ctx, [ {‘TIME_PERIOD’: 1, ‘OBS_VALUE’: 3.5}, {‘TIME_PERIOD’: 2, ‘OBS_VALUE’: 3.5},])

set_growth_baseline(ctx, [3.5, 3.5])