Skip to content

Commit

Permalink
ENH: Adds datetime arithmetic with timedeltas
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Jevnik committed Jun 4, 2015
1 parent ea66296 commit 23c3f0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blaze/expr/arithmetic.py
Expand Up @@ -6,7 +6,7 @@
import pandas as pd
from datashape import dshape, var, DataShape
from dateutil.parser import parse as dt_parse
from datashape.predicates import isscalar, isboolean, isnumeric
from datashape.predicates import isscalar, isboolean, isnumeric, isdatelike
from datashape import coretypes as ct, discover, unsigned, promote, optionify

from .core import parenthesize, eval_str
Expand Down Expand Up @@ -418,4 +418,5 @@ def _invert(self):
_rsub, _pow, _rpow, _mod, _rmod, _neg])),
(isscalar, set([_eq, _ne, _lt, _le, _gt, _ge])),
(isboolean, set([_or, _ror, _and, _rand, _invert])),
(isdatelike, set([_add, _radd, _sub, _rsub])),
])

0 comments on commit 23c3f0a

Please sign in to comment.