message_ix_models.model.material.share_constraints.gen_com_share_df
- message_ix_models.model.material.share_constraints.gen_com_share_df(shr_name: str, df_vals: DataFrame, type: Literal['up', 'lo'] = 'up') → DataFrame[source]
Generate DataFrame for
share_commodity_up/loparameter.- Parameters:
shr_name – name of the share constraint
df_vals – DataFrame with columns [“node”, “Value”]
type – “lo” for minimum constraint and “up” for maximum constraint
- Returns:
pd.DataFrame–share_commodity_up/loparameter data-------