IAMconsortium / pyam

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

Add a `diff()` method #600

Closed danielhuppmann closed 2 years ago

danielhuppmann commented 2 years ago

Please confirm that this PR has done the following:

Description of PR

This method implements a diff() method similar to the equivalent pandas-method, see https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.diff.html.

codecov[bot] commented 2 years ago

Codecov Report

Merging #600 (2cad4f9) into main (9f84bcd) will increase coverage by 0.0%. The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #600   +/-   ##
=====================================
  Coverage   94.2%   94.2%           
=====================================
  Files         50      50           
  Lines       5331    5361   +30     
=====================================
+ Hits        5022    5052   +30     
  Misses       309     309           
Impacted Files Coverage Δ
pyam/core.py 94.3% <100.0%> (+<0.1%) :arrow_up:
tests/test_ops.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9f84bcd...2cad4f9. Read the comment docs.