Dataframe 0.15 Help

fill

Replace missing values.

fillNulls

Replaces null values with given value or expression.

df.fillNulls { colsOf<Int?>() }.with { -1 } // same as df.update { colsOf<Int?>() }.where { it == null }.with { -1 }

fillNaNs

Replaces NaN values (Double.NaN and Float.NaN) with given value or expression.

df.fillNaNs { colsOf<Double>() }.withZero()

fillNA

Replaces NA values (null, Double.NaN, and Float.NaN) with given value or expression.

df.fillNA { weight }.with { -1 }
Last modified: 09 December 2024