The dataframe returned by ddlpy.measurements_amount is not complete, since it only returns the first dataframe from the returned list.
What I Did
import ddlpy
locations = ddlpy.locations()
bool_hoedanigheid = locations['Hoedanigheid.Code'].isin(['NAP'])
bool_stations = locations.index.isin(['HOEKVHLD'])
bool_grootheid = locations['Grootheid.Code'].isin(['WATHTE'])
selected = locations.loc[bool_grootheid & bool_hoedanigheid & bool_stations]
date_min = "1980-01-01"
date_max = "2010-01-05"
# if we pass one row to the measurements function you can get all the measurements
df_amount = ddlpy.measurements_amount(selected.iloc[0], date_min, date_max)
print("df_amount:", df_amount)
Description
The dataframe returned by ddlpy.measurements_amount is not complete, since it only returns the first dataframe from the returned list.
What I Did
This prints:
But if we unindent
return df_amount
and the code above inddlpy.measurements_amount()
it returns:After fixing this: