nandataframefilter
nandataframefilter ¶
Add module for NanDataframeFilter
Classes¶
NanDataframeFilter ¶
Bases: DataframeFilter
DataframeFilter that removes nan values from feature columns
Filter to filter data of a dataframe
Source code in niceml/data/datafilters/dataframefilter.py
Functions¶
filter ¶
The filter function is used to remove rows from the data that have NaN values
in any of the columns that are specified as inputs or targets of the
self.data_description
. This is done by dropping all rows where there are NaN
values in any of these columns.
Parameters:
-
data
(DataFrame
) –pd.DataFrame: Pass the data into the function
Returns:
-
DataFrame
–A dataframe with the rows that have at least one nan value in the columns
-
DataFrame
–specified by filter_columns removed