pyarrow.compute.strftime#
- pyarrow.compute.strftime(timestamps,/,format='%Y-%m-%dT%H:%M:%S',locale='C',*,options=None,memory_pool=None)#
Format temporal values according to a format string.
For each input value, emit a formatted string.The time format string and locale can be set using StrftimeOptions.The output precision of the “%S” (seconds) format code depends onthe input time precision: it is an integer for timestamps withsecond precision, a real number with the required number of fractionaldigits for higher precisions.Null values emit null.An error is returned if the values have a defined timezone but itcannot be found in the timezone database, or if the specified localedoes not exist on this system.
- Parameters:
- timestampsArray-like or scalar-like
Argument to compute function.
- format
str, default “%Y-%m-%dT%H:%M:%S” Pattern for formatting input values.
- locale
str, default “C” Locale to use for locale-specific format specifiers.
- options
pyarrow.compute.StrftimeOptions, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool, optional If not passed, will allocate memory from the default memory pool.

