clean_dataframe

mastml.legos.feature_generators.clean_dataframe(df)[source]

Method to clean dataframes after feature generation has occurred, to remove columns that have a single missing or NaN value, or remove a row that is fully empty

Args:

df: (dataframe), a post feature generation dataframe that needs cleaning

Returns:

df: (dataframe), the cleaned dataframe