-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a function compare()
to compare two IamDataFrames
#174
Conversation
lgtm, one suggestion though: should we add an additional option(s)? Specifically, I'm thinking difference, relative difference, and anything else? so you would see the difference in the test is |
The comparison is using @gidden, can you specify a use case that requires a more elaborate treatment? |
I see that
Another thought is this API/feel is close to looking like Perhaps we should take the pandas route and supply a
|
4bfae0a
to
d6b3ac3
Compare
rebased to resolve merge conflicts |
I see the point of broader Anyway, I refactored to |
difference()
to compare two IamDataFramescompare()
to compare two IamDataFrames
Another idea for a use case of this function (jotted down here for future reference):
which would show the difference between two scenarios with different names within one IamDataFrame (whereas the current implementation compares scenarios with the same name across two IamDataFrames). |
Awesome, thanks! |
Please confirm that this PR has done the following:
Description of PR
This PR introduces a function
compare()
to compare thedata
tables of two IamDataFrames using thenp.isclose()
function.