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(...)))?
Working on some improvements to the integration of the IIASA-database-integration, and I'm wondering why the return-type
iiasa.Connection.query()
is apandas.DataFrame
, not anIamDataFrame
- which would be more logical.@gidden, any particular reason? And any objection to casting the returned dataframe as
IamDataFrame
directly (instead of having to dodf = pyam.IamDataFrame(iiasa.Connection(<name>).query(...))
)?