pyarrow.compute.AssumeTimezoneOptions#
- class pyarrow.compute.AssumeTimezoneOptions(timezone, *, ambiguous='raise', nonexistent='raise')#
Bases:
_AssumeTimezoneOptions
Options for the assume_timezone function.
- Parameters:
- timezone
str
Timezone to assume for the input.
- ambiguous
str
, default “raise” How to handle timestamps that are ambiguous in the assumed timezone. Accepted values are “raise”, “earliest”, “latest”.
- nonexistent
str
, default “raise” How to handle timestamps that don’t exist in the assumed timezone. Accepted values are “raise”, “earliest”, “latest”.
- timezone
- __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:
- buf
Buffer
The buffer containing the data to deserialize.
- buf
- serialize(self)#