pyspark.sql.DataFrameNaFunctions

class pyspark.sql.DataFrameNaFunctions(df: pyspark.sql.dataframe.DataFrame)

Functionality for working with missing data in DataFrame.

Methods

drop([how, thresh, subset])

Returns a new DataFrame omitting rows with null values.

fill(value[, subset])

Replace null values, alias for na.fill().

replace(to_replace[, value, subset])

Returns a new DataFrame replacing a value with another value.