You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace this with a check for the Kwaliteitswaardecode (code insipred by hatyan.getonlinedata.ddlpy_to_hatyan():
# first flatten the KwaliteitswaardecodeLijstimportpandasaspdqc=pd.to_numeric(ddlpy_meas['WaarnemingMetadata.KwaliteitswaardecodeLijst'].str[0],downcast='integer')
# then use it to set all numeric values to nanbool_nan=qc==99ddlpy_meas["Meetwaarde.Waarde_Numeriek"].loc[bool_nan] =np.nan#alternatively check for "["99"]" directly, if possible (without flattening)
The text was updated successfully, but these errors were encountered:
Description
When retreiving data, sometimes an invalid row is included in the resulting dataframe. The example code below prints:
However, this dataframe should only contain GrootheidCode=WATHTE
What I Did
This is also the case for MSL/1980/2024 for F3PFM/F3/F16/L9PFM/etc
Analysis
This happens because of an inconvenient invalid value filter:
https://github.com/openearth/ddlpy/blob/effcf06e70d7944fb2775f7de6f9e4e458955758/ddlpy/ddlpy.py#L141-L142
Replace this with a check for the Kwaliteitswaardecode (code insipred by hatyan.getonlinedata.ddlpy_to_hatyan():
The text was updated successfully, but these errors were encountered: