Open phackstock opened 2 years ago
Note that I implemented a similar solution in #598 for appending/merging IamDataFrame instances with both yearly data (as integer) and continuous-time resolution (as datetime). I also did a bit of refactoring and restructuring the test suite to have concat and append behave in a similar manner.
Ah very good. I'll have a look to take some inspiration from that.
@EmiFej and I also came across the error. The error text is misleading - "incompatible timeseries dimensions" - the error is thrown whenever there are extra columns in dataframes being appended.
Problem description
When trying to combing two or more
IamDataFrame
s usingpyam.concat
orIamDataFrame.append()
we get an error if we combine frames with and without a subannual column. Here's a minimum example to reproduce the error:Proposed solution
Before
append
orconcat
perform their respective tasks allIamDataFrame
s involved are checked if they have subannual columns. There are two outcomes of this check: