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.

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

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