pyarrow.compute.DayOfWeekOptions

class pyarrow.compute.DayOfWeekOptions(*, count_from_zero=True, week_start=1)

Bases: _DayOfWeekOptions

Options for the day_of_week function.

Parameters:
count_from_zerobool, default True

If True, number days from 0, otherwise from 1.

week_startint, default 1

Which day does the week start with (Monday=1, Sunday=7). How this value is numbered is unaffected by count_from_zero.

__init__(self, *, count_from_zero=True, week_start=1)

Methods

__init__(self, *[, count_from_zero, week_start])

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)