pyarrow.compute.strptime¶
- pyarrow.compute.strptime(strings, /, format, unit, *, options=None, memory_pool=None)¶
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
- stringsArray-like or scalar-like
Argument to compute function.
- format
str
Pattern for parsing input strings as timestamps, such as “%Y/%m/%d”.
- unit
str
Timestamp unit of the output. Accepted values are “s”, “ms”, “us”, “ns”.
- options
pyarrow.compute.StrptimeOptions
, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.