Skip to content

Returns TRUE if the DataFrame contains no rows.

Description

Returns TRUE if the DataFrame contains no rows.

Usage

<DataFrame>$is_empty()

Value

A logical value

Examples

library("polars")

df <- pl$DataFrame(
  a = c(1, 2, 3, 1),
  b = c("x", "y", "z", "x")
)
df$is_empty()
#> [1] FALSE
df$filter(pl$col("a") > 99)$is_empty()
#> [1] TRUE