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
multipleint, default 1

Number of units to round to.

unitstr, 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.

__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
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#