Skip to content

Commit

Permalink
fix: fixed deprecation warning when using pandas function
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPic committed May 13, 2024
1 parent fc5d047 commit 38e7c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ehyd_tools/sww_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def span_table(span_bool, min_span=None):

# minimum duration which is considered as one event
if min_span is None:
min_span = guess_freq(index).delta # TODO: Will not work on monthly or yearly data steps
min_span = pd.Timedelta(guess_freq(index)) # TODO: Will not work on monthly or yearly data steps

# pandas.Series with DatetimeIndex as index AND data
temp = _index_series(index[span_bool])
Expand Down

0 comments on commit 38e7c6b

Please sign in to comment.