pyarrow.compute.month_interval_betweenยถ

pyarrow.compute.month_interval_between(start, end, /, *, memory_pool=None)ยถ

Compute the number of months between two timestamps.

Returns the number of month boundaries crossed from start to end. That is, the difference is calculated as if the timestamps were truncated to the month. Null values emit null.

Parameters:
startArray-like or scalar-like

Argument to compute function.

endArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.