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:
- start
int The starting value for the sequence. The returned array will include this value.
- stop
int The stopping value for the sequence. The returned array will not include this value.
- step
int, default 1 The spacing between values.
- memory_pool
MemoryPool, optional A memory pool to use for memory allocations.
- start
- Returns:
- arange
Array
- arange
- Raises:
ArrowInvalidIf step is zero.