pyarrow.arange#

pyarrow.arange(int64_tstart,int64_tstop,int64_tstep=1,*,memory_pool=None)#

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

This function is similar to Python’srange function.The resulting array will contain values starting fromstart up to but notincludingstop, with a step size ofstep.

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

Ifstep is zero.