message_ix_models.model.material.data_aluminum.compute_differences

message_ix_models.model.material.data_aluminum.compute_differences(df: DataFrame, ref_col: str | int) DataFrame[source]

Compute positive differences between columns and a reference column.

Parameters:
  • df (pd.DataFrame) – DataFrame with columns to compare.

  • ref_col (int or str) – Reference column.

Returns:

DataFrame of positive differences.

Return type:

pd.DataFrame