Skip to content

Get the number of chunks that this Series contains

Description

Get the number of chunks that this Series contains

Usage

<series>$_n_chunks()

Value

An integer value

Examples

library("polars")

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

# Concatenate Series with rechunk = TRUE
pl$concat(s, s2, rechunk = TRUE)$n_chunks()
#> [1] 1
# Concatenate Series with rechunk = FALSE
pl$concat(s, s2, rechunk = FALSE)$n_chunks()
#> [1] 2