-
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
Initialize an IamDataFrame
from pd.DataFrame
with formatting specs
#199
Initialize an IamDataFrame
from pd.DataFrame
with formatting specs
#199
Conversation
@znicholls, this PR tries to make it easier to initialize an Can you check whether that works with your thinking for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice changes @danielhuppmann ! That extra flexibility is very cool.
The IamDataFrame
format is suitably sane that whatever you do it's going to be easy for us to cast from ScmDataFrame
to an IamDataFrame
. I think no matter what, the awkward 'model' name clash is here to stay so we just put that in the 'not perfect but ok' basket (unless model became 'iam' in an IamDataFrame
but that sort of backwards compatibility breaking change seems unnecessary right now).
will leave final review and merge to @gidden nice tweak @danielhuppmann |
ok, small changes requested. looks great! |
thanks @danielhuppmann ! |
Please confirm that this PR has done the following:
Description of PR
This PR allows initialising an
IamDataFrame
from a file orpd.DataFrame
and filling out missing required columns efficiently.See the unit tests in
tests/test_cast_to_iamc.py
for possible use cases.