ibis.expr.api.TimestampValue.truncate¶
-
TimestampValue.
truncate
(arg, 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 ‘D’: day ‘W’: week ‘H’: hour ‘MI’: minute
Returns: truncated : timestamp