pyarrow.compute.AssumeTimezoneOptions

class pyarrow.compute.AssumeTimezoneOptions(timezone, *, ambiguous='raise', nonexistent='raise')

Bases: _AssumeTimezoneOptions

Options for the assume_timezone function.

Parameters:
timezonestr

Timezone to assume for the input.

ambiguousstr, default “raise”

How to handle timestamps that are ambiguous in the assumed timezone. Accepted values are “raise”, “earliest”, “latest”.

nonexistentstr, default “raise”

How to handle timestamps that don’t exist in the assumed timezone. Accepted values are “raise”, “earliest”, “latest”.

__init__(self, timezone, *, ambiguous='raise', nonexistent='raise')

Methods

__init__(self, timezone, *[, ambiguous, ...])

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)