ibis.expr.api.TimestampValue.truncate¶
-
TimestampValue.
truncate
(unit)¶ Zero out smaller-size units beyond indicated unit. Commonly used for time series resampling.
- Parameters
unit (string, one of below table) – ‘Y’: year ‘Q’: quarter ‘M’: month ‘W’: week ‘D’: day ‘h’: hour ‘m’: minute ‘s’: second ‘ms’: millisecond ‘us’: microsecond ‘ns’: nanosecond
- Returns
truncated
- Return type
timestamp