From 81273aa87bc9806136805370e0e5aa5859b1995a Mon Sep 17 00:00:00 2001 From: mroberge Date: Fri, 4 Jun 2021 18:15:46 -0400 Subject: [PATCH] Change offset to Timedelta All comparisons should be between pd.Timedeltas --- hydrofunctions/hydrofunctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydrofunctions/hydrofunctions.py b/hydrofunctions/hydrofunctions.py index e6e6135..6e243c9 100644 --- a/hydrofunctions/hydrofunctions.py +++ b/hydrofunctions/hydrofunctions.py @@ -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)