IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
226 stars 118 forks source link

Add relative difference to pyam.compare #655

Open phackstock opened 2 years ago

phackstock commented 2 years ago

As part of the region-processing done by nomenclature there can be the comparison between model native and aggregated results. This comparison is done using pyam.compare. The output of this function is a pandas.DataFrame which contains two columns with the different results for the two pyam.IamDataFrame objects that are compared. What would be convenient, is to add a third column which contains the relative difference. This way it can be sorted so that differences can be inspected in order.