pyarrow.compute.WeekOptions#

classpyarrow.compute.WeekOptions(*,week_starts_monday=True,count_from_zero=False,first_week_is_fully_in_year=False)#

Bases:_WeekOptions

Options for theweek function.

Parameters:
week_starts_mondaybool, defaultTrue

If True, weeks start on Monday; if False, on Sunday.

count_from_zerobool, defaultFalse

If True, dates at the start of a year that fall into the last weekof the previous year emit 0.If False, they emit 52 or 53 (the week number of the last weekof the previous year).

first_week_is_fully_in_yearbool, defaultFalse

If True, week number 0 is fully in January.If False, a week that begins on December 29, 30 or 31 is consideredto be week number 0 of the following year.

__init__(self,*,week_starts_monday=True,count_from_zero=False,first_week_is_fully_in_year=False)#

Methods

__init__(self, *[, week_starts_monday, ...])

deserialize(buf)

Deserialize options for a function.

serialize(self)

staticdeserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#