Skip to content

Commit 1ef3360

Browse files
committed
Add help to date_bin and aggregator
1 parent 3fc6439 commit 1ef3360

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

beanquery/query_env.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,12 +803,14 @@ def date_bin_str(stride, source, origin):
803803
function also accepts strides containing units of months and years.
804804
805805
Arguments:
806-
stride: A string representing a time interval, e.g. '1 day', '1 month', '1 year'; source: The date to bin; origin: The start of the binning interval
806+
stride: A string representing a time interval, e.g. '1 day', '1 month', '1 year'; Make sure to use single quotes in the first argument, as
807+
double-quoted strings are parsed as column names for backwards compatibility.
808+
source: The date to bin; origin: The start of the binning interval.
807809
"""
808810
return date_bin(interval(stride), source, origin)
809811

810812

811-
def aggregator(intypes, name=None, groups=None):
813+
def aggregator(intypes, name=None):
812814
"""Decorator to register an aggregator function.
813815
814816
Args:

0 commit comments

Comments
 (0)