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

Make sure to keep "technology" and "parameter" multiindex names #126

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

koen-vg
Copy link
Contributor

@koen-vg koen-vg commented Mar 18, 2024

There were a few points were the multiindex names of the data df got lost in dataframe concatenation operations; this eventually lead to the output files having empty columns headers for the index columns, leading to problems in pypsa-eur down the road. Were the column names added manually before or is this some regressions with a new pandas version?? Anyway, fixed with this commit.

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • Data source for new technologies is cleary stated.
  • Newly introduced dependencies are added to environment.yaml (if applicable).
  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the GPLv3 license.

@fneum fneum merged commit 6e5066b into PyPSA:master Mar 19, 2024
1 check failed
@fneum
Copy link
Member

fneum commented Mar 19, 2024

I think it is a pandas regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants