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

fix/postprocessing-multi-index-error #175

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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
Loading