Append expressions
Description
Append expressions
Usage
<Expr>$append(other, ..., upcast = TRUE)
Arguments
other
|
Expression to append. |
…
|
These dots are for future extensions and must be empty. |
upcast
|
If TRUE (default), cast both Series to the same supertype.
|
Value
A polars expression
Examples
library("polars")
df <- pl$DataFrame(a = 8:10, b = c(NA, 4, 4))
df$select(pl$all()$head(1)$append(pl$all()$tail(1)))
#> shape: (2, 2)
#> ┌─────┬──────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ f64 │
#> ╞═════╪══════╡
#> │ 8 ┆ null │
#> │ 10 ┆ 4.0 │
#> └─────┴──────┘