pyarrow.arange#

pyarrow.arange(int64_t start, int64_t stop, int64_t step=1, *, memory_pool=None)#

Create an array of evenly spaced values within a given interval.

This function is similar to Python’s range function. The resulting array will contain values starting from start up to but not including stop, with a step size of step.

Parameters:
startint

The starting value for the sequence. The returned array will include this value.

stopint

The stopping value for the sequence. The returned array will not include this value.

stepint, default 1

The spacing between values.

memory_poolMemoryPool, optional

A memory pool to use for memory allocations.

Returns:
arangeArray
Raises:
ArrowInvalid

If step is zero.