pyarrow.compute.StrptimeOptions

class pyarrow.compute.StrptimeOptions(format, unit)

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”.

__init__(self, format, unit)

Methods

__init__(self, format, unit)

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)