Skip to content
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

Support adding dataframes of metadata #678

Closed
gidden opened this issue Jun 30, 2022 · 2 comments
Closed

Support adding dataframes of metadata #678

gidden opened this issue Jun 30, 2022 · 2 comments

Comments

@gidden
Copy link
Member

gidden commented Jun 30, 2022

At present, one must either add metadata from a file (load_meta()) or individually (set_meta()). We can extend one of these (probably best to do so on set_meta()) to support loading multiple metadata columns in one go.

Does anyone have an opinion before I propose an implementation?

cc @danielhuppmann

@danielhuppmann
Copy link
Member

Sure, good idea! For completeness, you can already pass a suitable pd.DataFrame at initialization using

pyam.DataFrame(data, meta=<some meta frame>)

This is implemented here, should be just a few lines (and a test) to extend set_meta()

if meta is not None:

@gidden
Copy link
Member Author

gidden commented Jul 13, 2022

closed by #679

@gidden gidden closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants