polars.arange#
- polars.arange(
 - start: int | IntoExprColumn,
 - end: int | IntoExprColumn,
 - step: int = 1,
 - *,
 - dtype: PolarsIntegerType = Int64,
 - eager: Literal[False] = False,
 - polars.arange(
 - start: int | IntoExprColumn,
 - end: int | IntoExprColumn,
 - step: int = 1,
 - *,
 - dtype: PolarsIntegerType = Int64,
 - eager: Literal[True],
 - polars.arange(
 - start: int | IntoExprColumn,
 - end: int | IntoExprColumn,
 - step: int = 1,
 - *,
 - dtype: PolarsIntegerType = Int64,
 - eager: bool,
 Generate a range of integers.
Alias for
int_range().- Parameters:
 - start
 Lower bound of the range (inclusive).
- end
 Upper bound of the range (exclusive).
- step
 Step size of the range.
- dtype
 Data type of the range. Defaults to
Int64.- eager
 Evaluate immediately and return a
Series. If set toFalse(default), return an expression instead.
- Returns:
 - Column of data type 
dtype. 
- Column of data type 
 
See also
int_rangeGenerate a range of integers.
int_rangesGenerate a range of integers for each row of the input columns.
Examples
>>> pl.arange(0, 3, eager=True) shape: (3,) Series: 'int' [i64] [ 0 1 2 ]