Module ImportFrom alias alias alias ImportFrom alias alias alias Import alias ImportFrom alias alias alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad Call NameLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad Call NameLoad NameLoad attr attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareIn NameLoad NameLoad body Return NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body Return Call NameLoad Call AttributeLoad NameLoad attr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Str Str Str FunctionDef arguments args NameParam defaults body If CompareGtE Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If NameLoad body If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameLoad orelse Assign ListStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad NameLoad Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad Call NameLoad ListLoad NameLoad AugAssignBitOr NameStore Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad
N/A __future__ absolute_import division print_function expressions ElemWise schema_method_list method_properties N/A datashape datashape dshape isdatelike isnumeric N/A __all__ N/A DateTime Date date Year year Month month Day day Hour hour Minute minute Second second Millisecond millisecond Microsecond microsecond Date date Time time UTCFromTimestamp DateTimeTruncate DateTime N/A ElemWise N/A N/A  Superclass for datetime accessors  N/A __slots__ N/A _hash _child __str__ N/A N/A self N/A N/A N/A N/A %s.%s N/A N/A str N/A self _child N/A N/A N/A N/A type self __name__ lower N/A _schema N/A N/A self N/A N/A N/A N/A dshape N/A self _dtype N/A _name N/A N/A self N/A N/A N/A N/A %s_%s N/A N/A N/A self _child _name N/A self attr N/A property attr N/A N/A self N/A N/A N/A N/A N/A N/A N/A type self __name__ lower N/A property N/A Date N/A DateTime N/A N/A _dtype N/A datashape date_ N/A date N/A N/A expr N/A N/A N/A N/A Date expr N/A Year N/A DateTime N/A N/A _dtype N/A datashape int32 N/A year N/A N/A expr N/A N/A N/A N/A Year expr N/A Month N/A DateTime N/A N/A _dtype N/A datashape int64 N/A month N/A N/A expr N/A N/A N/A N/A Month expr N/A Day N/A DateTime N/A N/A _dtype N/A datashape int64 N/A day N/A N/A expr N/A N/A N/A N/A Day expr N/A Time N/A DateTime N/A N/A _dtype N/A datashape time_ N/A time N/A N/A expr N/A N/A N/A N/A Time expr N/A Hour N/A DateTime N/A N/A _dtype N/A datashape int64 N/A hour N/A N/A expr N/A N/A N/A N/A Hour expr N/A Minute N/A DateTime N/A N/A _dtype N/A datashape int64 N/A minute N/A N/A expr N/A N/A N/A N/A Minute expr N/A Second N/A DateTime N/A N/A _dtype N/A datashape int64 N/A second N/A N/A expr N/A N/A N/A N/A Second expr N/A Millisecond N/A DateTime N/A N/A _dtype N/A datashape int64 N/A millisecond N/A N/A expr N/A N/A N/A N/A Millisecond expr N/A Microsecond N/A DateTime N/A N/A _dtype N/A datashape int64 N/A microsecond N/A N/A expr N/A N/A N/A N/A Microsecond expr N/A UTCFromTimestamp N/A DateTime N/A N/A _dtype N/A datashape datetime_ N/A utcfromtimestamp N/A N/A expr N/A N/A N/A N/A UTCFromTimestamp expr N/A N/A units N/A year month week day hour minute second millisecond microsecond nanosecond N/A unit_aliases N/A y w d date h s ms us ns year week day day hour second millisecond microsecond nanosecond normalize_time_unit N/A N/A s N/A N/A N/A  Normalize time input to one of 'year', 'second', 'millisecond', etc..

    Examples
    --------

    >>> normalize_time_unit('milliseconds')
    'millisecond'
    >>> normalize_time_unit('ms')
    'millisecond'
     N/A s N/A N/A N/A N/A s lower strip N/A N/A s units N/A N/A s N/A N/A s unit_aliases N/A N/A N/A unit_aliases N/A s N/A N/A N/A s N/A -1 s N/A N/A N/A normalize_time_unit N/A N/A s rstrip s N/A N/A ValueError N/A Do not understand time unit %s s N/A DateTimeTruncate N/A DateTime N/A N/A __slots__ N/A _hash _child measure unit _dtype N/A N/A self N/A N/A N/A N/A N/A N/A units index day N/A N/A units index N/A self unit N/A N/A N/A datashape date_ N/A N/A N/A datashape datetime_ N/A property _name N/A N/A self N/A N/A N/A N/A N/A self _child _name N/A property __str__ N/A N/A self N/A N/A N/A N/A %s.truncate(%ss=%g) N/A N/A self _child N/A self unit N/A self measure N/A N/A truncate N/A N/A expr N/A args kwargs N/A N/A  Truncate datetime expression

    Examples
    --------

    >>> from blaze import symbol, compute
    >>> from datetime import datetime
    >>> s = symbol('s', 'datetime')

    >>> expr = s.truncate(10, 'minutes')
    >>> compute(expr, datetime(2000, 6, 25, 12, 35, 10))
    datetime.datetime(2000, 6, 25, 12, 30)

    >>> expr = s.truncate(1, 'week')
    >>> compute(expr, datetime(2000, 6, 25, 12, 35, 10))
    datetime.date(2000, 6, 25)

    Alternatively use keyword arguments to specify unit and measure

    >>> expr = s.truncate(weeks=2)
     N/A N/A N/A args N/A kwargs N/A N/A N/A TypeError truncate takes exactly 2 positional arguments, e.g., truncate(2, "days") or 1 keyword argument, e.g., truncate(days=2) N/A args N/A N/A kwargs N/A N/A N/A TypeError N/A Cannot pass both positional and keyword arguments; given %s and %s. N/A args kwargs N/A N/A measure unit args N/A N/A N/A N/A unit measure N/A N/A kwargs items N/A N/A DateTimeTruncate expr measure N/A normalize_time_unit unit N/A N/A N/A N/A schema_method_list extend N/A N/A isdatelike N/A set N/A year month day hour minute date time second millisecond microsecond truncate N/A isnumeric N/A set N/A utcfromtimestamp N/A method_properties N/A set N/A year month day hour minute second millisecond microsecond date time utcfromtimestamp