Skip to content

Get the number of chunks that this Series contains.

Source code

Description

Get the number of chunks that this Series contains.

Usage

<Series>$n_chunks()

Value

A numeric value

Examples

library("polars")

s = as_polars_series(1:3)
s$n_chunks()
#> [1] 1
# Concatenate Series with rechunk = TRUE
s2 = as_polars_series(4:6)
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