Skip to content

Create a single chunk of memory for this Series

Description

Create a single chunk of memory for this Series

Usage

<series>$_rechunk(..., in_place = FALSE)

Arguments

These dots are for future extensions and must be empty.
in_place Bool to indicate if the operation should be done in place.

Value

A polars Series

Examples

library("polars")

s <- pl$Series("a", c(1, 2, 3))
s$n_chunks()
#> [1] 1
s2 <- pl$Series("a", c(4, 5, 6))
s <- pl$concat(s, s2, rechunk = FALSE)
s$n_chunks()
#> [1] 2
s$rechunk()$n_chunks()
#> [1] 1