snowflake.snowpark.DataFrameNaFunctions¶

class snowflake.snowpark.DataFrameNaFunctions(dataframe: DataFrame)[source]¶

Bases: object

Provides functions for handling missing values in a DataFrame.

Methods

drop([how, thresh, subset])

Returns a new DataFrame that excludes all rows containing fewer than a specified number of non-null and non-NaN values in the specified columns.

fill(value[, subset])

Returns a new DataFrame that replaces all null and NaN values in the specified columns with the values provided.

replace(to_replace[, value, subset])

Returns a new DataFrame that replaces values in the specified columns.