pyarrow.compute.StrptimeOptions#
- class pyarrow.compute.StrptimeOptions(format, unit, error_is_null=False)#
Bases:
_StrptimeOptions
Options for the strptime function.
- Parameters:
- format
str
Pattern for parsing input strings as timestamps, such as “%Y/%m/%d”. Note that the semantics of the format follow the C/C++ strptime, not the Python one. There are differences in behavior, for example how the “%y” placeholder handles years with less than four digits.
- unit
str
Timestamp unit of the output. Accepted values are “s”, “ms”, “us”, “ns”.
- error_is_nullbool, default
False
Return null on parsing errors if true or raise if false.
- format
- __init__(self, format, unit, error_is_null=False)#
Methods
__init__
(self, format, unit[, error_is_null])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)#