pyarrow.compute.month_day_nano_interval_between¶
-
pyarrow.compute.
month_day_nano_interval_between
(start, end, *, memory_pool=None)¶ Compute the number of months, days and nanoseconds between two timestamps.
Returns the number of months, days, and nanoseconds from start to end. That is, first the difference in months is computed as if both timestamps were truncated to the months, then the difference between the days is computed, and finally the difference between the times of the two timestamps is computed as if both times were truncated to the nanosecond. Null values return 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.