Skip to content

Commit

Permalink
Merge pull request #175 from oemof/fix/postprocessing-multi-index-error
Browse files Browse the repository at this point in the history
fix/postprocessing-multi-index-error
  • Loading branch information
henhuy authored Jun 14, 2024
2 parents 782118e + 445af1d commit 131f250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Features

Fixes

* MultiIndexError in postprocessing if more than 2 oemof nodes are given `#174 <https://github.com/oemof/oemof-tabular/issues/174>`_


0.0.5 Patch Release - Miraculous Mary (2024-02-23)
-----------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/oemof/tabular/postprocessing/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def convert_to_pandas(value):
for key, series in data.items():
if series.empty:
continue
if len(key) != 2:
continue
if data_key == "period_scalars":
series = series.transpose()
mindex = pd.MultiIndex.from_tuples(
Expand Down

0 comments on commit 131f250

Please sign in to comment.