Function intRange

  • Create a range expression.


    This can be used in a select, with_column etc. Be sure that the range size is equal to the DataFrame you are collecting.

    Type Parameters

    • T

    Parameters

    • opts: {
          dtype: DataType;
          eager?: boolean;
          high: any;
          low: any;
          step: number;
      }
      • dtype: DataType
      • Optional eager?: boolean
      • high: any
      • low: any
      • step: number

    Returns any

    Example

    > df.lazy()
    > .filter(pl.col("foo").lt(pl.intRange(0, 100)))
    > .collect()
  • Parameters

    • low: any
    • Optional high: any
    • Optional step: number
    • Optional dtype: DataType
    • Optional eager: true

    Returns pl.Series

  • Parameters

    • low: any
    • Optional high: any
    • Optional step: number
    • Optional dtype: DataType
    • Optional eager: false

    Returns pl.Expr