pyarrow.compute.day_of_year(values, *, memory_pool=None)

Extract day of year number.

January 1st maps to day number 1, February 1st to 32, etc. Null values emit null. An error is returned if the values have a defined timezone but it cannot be found in the timezone database.

  • values (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.