Skip to content

Commit

Permalink
feat(api): accept more input types in ibis.range
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 22, 2024
1 parent c0c2173 commit 67e4240
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibis/expr/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2237,7 +2237,9 @@ def _timestamp_range(
step: datetime.timedelta | ir.IntervalValue,
) -> ir.ArrayValue:
return ops.TimestampRange(
start=normalize_datetime(start), stop=normalize_datetime(stop), step=step
start=normalize_datetime(start) if isinstance(start, str) else start,
stop=normalize_datetime(stop) if isinstance(stop, str) else stop,
step=step,
).to_expr()


Expand Down

0 comments on commit 67e4240

Please sign in to comment.