fill
Replace missing values.
Related operations: Update / convert values
Replaces null values with given value or expression.
See column selectors for how to select the columns for this operation.
df.fillNulls { colsOf<Int?>() }.with { -1 }
// same as
df.update { colsOf<Int?>() }.where { it == null }.with { -1 }Replaces NaN values (Double.NaN and Float.NaN) with given value or expression.
See column selectors for how to select the columns for this operation.
df.fillNaNs { colsOf<Double>() }.withZero()Replaces NA values (null, Double.NaN, and Float.NaN) with given value or expression.
See column selectors for how to select the columns for this operation.
df.fillNA { weight }.with { -1 }