pyarrow.compute.floor_temporal¶
- pyarrow.compute.floor_temporal(timestamps, /, multiple=1, unit='second', *, options=None, memory_pool=None)¶
Round temporal values down to nearest multiple of specified time unit.
Null values emit null. An error is returned if the values have a defined timezone but it cannot be found in the timezone database.
- Parameters
- timestampsArray-like or scalar-like
Argument to compute function.
- multiple
int
, default 1 Number of units to round to.
- unit
str
, default “second” The unit in which multiple is expressed. Accepted values are “year”, “quarter”, “month”, “week”, “day”, “hour”, “minute”, “second”, “millisecond”, “microsecond”, “nanosecond”.
- options
pyarrow.compute.RoundTemporalOptions
, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.