drop-na
Drop rows carrying a missing value in the named columns.
NoteExperimental
This function is experimental; its interface may change without notice.
Since 0.6.0.
With no columns, a row is dropped when any of its columns is missing; with positional columns, only those are inspected. A value is missing when it is none (an absent key reads as none).
Usage
drop-na(
data,
..cols,
)Parameters
| Parameter | Default | Description |
|---|---|---|
data |
Row-store (array of dicts) or column-store (dict of arrays). | |
..cols |
Columns to inspect, as positional strings; none inspects all. |
Returns
A row-store array without the dropped rows.
Examples
Drop rows missing a highway figure.
#let complete = drop-na(mpg, "hwy")