Skip to content

Commit

Permalink
Change offset to Timedelta
Browse files Browse the repository at this point in the history
All comparisons should be between pd.Timedeltas
  • Loading branch information
mroberge committed Jun 4, 2021
1 parent 0216e9b commit 81273aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrofunctions/hydrofunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def extract_nwis_df(nwis_dict, interpolate=True):
startmin = min(starts)
endmax = max(ends)
# Remove all frequencies of zero from freqs list.
zero = to_offset("0min")
zero = pd.Timedelta("0min")
freqs_no_zeros = list(filter(lambda x: x > zero, freqs))
if len(freqs_no_zeros) > 0:
freqmin = min(freqs)
Expand Down

0 comments on commit 81273aa

Please sign in to comment.