pyarrow.compute.RoundTemporalOptions#
- class pyarrow.compute.RoundTemporalOptions(multiple=1, unit='day', week_starts_monday=True)#
Bases:
pyarrow._compute._RoundTemporalOptions
Options for rounding temporal values.
- Parameters
- multiple
int
, default 1 Number of units to round to.
- unit
str
, default “day” The unit in which multiple is expressed. Accepted values are “year”, “quarter”, “month”, “week”, “day”, “hour”, “minute”, “second”, “millisecond”, “microsecond”, “nanosecond”.
- week_starts_mondaybool, default
True
If True, weeks start on Monday; if False, on Sunday.
- multiple
- __init__(self, multiple=1, unit='day', week_starts_monday=True)#
Methods
__init__
(self[, multiple, unit, ...])deserialize
(buf)Deserialize options for a function.
serialize
(self)- static deserialize(buf)#
Deserialize options for a function.
- Parameters
- buf
Buffer
The buffer containing the data to deserialize.
- buf
- serialize(self)#