pyarrow.compute.weeks_between¶
-
pyarrow.compute.
weeks_between
(start, end, *, memory_pool=None, options=None, count_from_zero=True, week_start=1)¶ Compute the number of weeks between two timestamps.
Returns the number of week boundaries crossed from start to end. That is, the difference is calculated as if the timestamps were truncated to the week. Null values emit null.
- Parameters
start (Array-like or scalar-like) – Argument to compute function
end (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.
options (pyarrow.compute.DayOfWeekOptions, optional) – Parameters altering compute function semantics.
count_from_zero (optional) – Parameter for DayOfWeekOptions constructor. Either options or count_from_zero can be passed, but not both at the same time.
week_start (optional) – Parameter for DayOfWeekOptions constructor. Either options or week_start can be passed, but not both at the same time.