pyarrow.compute.us_year#
- pyarrow.compute.us_year(values, /, *, memory_pool=None)#
Extract US epidemiological year number.
First week of US epidemiological year has the majority (4 or more) of it’s days in January. Last week of US epidemiological year has the year’s last Wednesday in it. US epidemiological week starts on Sunday. 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_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.