ibis.expr.api.DateValue.truncate

DateValue.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

Returns

truncated

Return type

date