pyarrow.compute.month

pyarrow.compute.month(values, /, *, memory_pool=None)

Extract month number.

Month is encoded as January=1, December=12. Null values emit null. An error is returned if the values have a defined timezone but it cannot be found in the timezone database.

Parameters:
valuesArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.