message_ix_models.model.material.util.cost_fit

message_ix_models.model.material.util.cost_fit(df: DataFrame) float[source]

Python implementation of cost_ref parameter estimation.

Originally implemented in Excel files for MACRO calibration.

Parameters:

df (pd.DataFrame) – DataFrame with required columns: “year” and “lvl”

Returns:

estimated value for cost_ref in 2020

Return type:

float