pyarrow.compute.strptime

pyarrow.compute.strptime(strings, *, memory_pool=None, options=None, format, unit)

Parse timestamps.

For each string in strings, parse it as a timestamp. The timestamp unit and the expected string pattern must be given in StrptimeOptions. Null inputs emit null. If a non-null string fails parsing, an error is returned.

Parameters
  • strings (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.

  • options (pyarrow.compute.StrptimeOptions, optional) – Parameters altering compute function semantics

  • **kwargs (optional) – Parameters for StrptimeOptions constructor. Either options or **kwargs can be passed, but not both at the same time.