pyarrow.compute.StrptimeOptions#

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

Bases: pyarrow._compute._StrptimeOptions

Options for the strptime function.

Parameters
formatstr

Pattern for parsing input strings as timestamps, such as “%Y/%m/%d”.

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)#