pyarrow.compute.StrptimeOptions#

class pyarrow.compute.StrptimeOptions(format, unit, error_is_null=False)#

Bases: _StrptimeOptions

Options for the strptime function.

Parameters:
formatstr

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.

unitstr

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.

__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:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#