IAMconsortium / pyam

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

Return-type of `iiasa.Connection.query()` not IamDataFrame #378

Closed danielhuppmann closed 4 years ago

danielhuppmann commented 4 years ago

Working on some improvements to the integration of the IIASA-database-integration, and I'm wondering why the return-type iiasa.Connection.query() is a pandas.DataFrame, not an IamDataFrame - which would be more logical.

@gidden, any particular reason? And any objection to casting the returned dataframe as IamDataFrame directly (instead of having to do df = pyam.IamDataFrame(iiasa.Connection(<name>).query(...)))?

gidden commented 4 years ago

No strong reason