pyarrow.compute.quarters_between

pyarrow.compute.quarters_between(start, end, *, memory_pool=None)

Compute the number of quarters between two timestamps.

Returns the number of quarter start boundaries crossed from start to end. That is, the difference is calculated as if the timestamps were truncated to the quarter. 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.