You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added micro and millisecond support to window function
* adding test for microsecond resampling
* added correct abbrev for milliseconds and fixed parsing
* added test for millisecond resample
Parses frequency and checks against allowable frequencies
124
+
:param freq: frequncy at which to upsample/downsample, declared in resample function
125
+
:return: list of parsed frequency value and time suffix
126
+
"""
121
127
iffreqnotinallowableFreqs:
122
128
try:
123
129
periods=freq.lower().split(" ")[0].strip()
124
130
units=freq.lower().split(" ")[1].strip()
125
131
except:
126
-
raiseValueError("Allowable grouping frequencies are sec (second), min (minute), hr (hour), day. Reformat your frequency as <integer> <day/hour/minute/second>")
127
-
ifunits.startswith(SEC):
132
+
raiseValueError("Allowable grouping frequencies are microsecond (musec), millisecond (ms), sec (second), min (minute), hr (hour), day. Reformat your frequency as <integer> <day/hour/minute/second>")
0 commit comments