[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.compute.StrptimeOptions.html [Back]  [Original]

pyarrow.compute.StrptimeOptions — Apache Arrow v25.0.1
Back to top
Search the docs ...:

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

Web Proxy Viewer  |  New URL  |  Original Page