Skip to content

Convert Literal to Series

Source code

Description

Collect an expression based on literals into a Series.

Usage

<Expr>$to_series()

Value

Series

Examples

library("polars")

pl$lit(1:5)$to_series()
#> polars Series: shape: (5,)
#> Series: '' [i32]
#> [
#>  1
#>  2
#>  3
#>  4
#>  5
#> ]