Skip to content

Commit

Permalink
improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Mar 12, 2024
1 parent b98d512 commit 26cd544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddlpy/ddlpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def measurements(location, start_date, end_date, clean_df=True):
"""return measurements for the given location and time window (start_date, end_date)"""

if isinstance(location, pd.DataFrame):
raise TypeError("'location' is a pandas.DataFrame, but should be a pandas.Series, "
"supply only one row instead, for instance by doing 'location.iloc[0]'")
raise TypeError("The provided location is a pandas.DataFrame, but should be a pandas.Series, "
"supply only one location/row instead, for instance by doing 'location.iloc[0]'")

start_date, end_date = _check_convert_dates(start_date, end_date, return_str=False)

Expand Down

0 comments on commit 26cd544

Please sign in to comment.