hotfix#102
Open
VincentJilesen wants to merge 2 commits into
Open
Conversation
VincentJilesen
commented
Jun 11, 2026
| df["parameter_input"] = np.nan | ||
| df['parameter_input'] = df['parameter_input'].combine_first( | ||
| df_identifiers.copy(deep=True).merge(df_gather, on=["uittredepunt_id", "naam"], how="left")[ | ||
| 'parameter_input']) |
Collaborator
Author
There was a problem hiding this comment.
Hier is niet te zien waar dit begint. Nu moet ik gaan zoeken naar waar het vierkante haakje opent. En als dit buiten het scherm valt is dat gedoe.
VincentJilesen
commented
Jun 11, 2026
| & (df_parameter_invoer_combined["scope"] == "uittredepunt") | ||
| & (df_parameter_invoer_combined["ondergrondscenario_naam"].notna()), | ||
| ["scope_referentie", "ondergrondscenario_naam", "parameter_input"], | ||
| ].rename( |
Collaborator
Author
There was a problem hiding this comment.
De loc[] eindigt hier waar het vierkante haakje is. Je kan dit opsplitsten als je dat wil. Met een mask en lijst van cols.
VincentJilesen
commented
Jun 11, 2026
| @@ -1,5 +1,5 @@ | |||
| from typing import Dict, List, Optional | |||
| from pandas import DataFrame, isna, notna, concat, read_sql, read_csv, set_option | |||
| from pandas import DataFrame, Series, notna, concat, read_sql, read_csv, set_option | |||
Collaborator
Author
There was a problem hiding this comment.
Eigenlijk ook niet echt netjes om zoveel functies uit pandas te halen omdat bijvoorbeeld geopandas dezelfde functies heeft en nu is het niet echt duidelijk waar deze vandaan komen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hotfix voor de bug in het combineren van de tabellen voor de expanded parameter df die naar de berekeningen gaat. Ik heb een test gemaakt om dit te controleren maar deze staat in een andere branch omdat ik daar de database heb uitgebreid zodat deze data beter beschikbaar is.