watex.utils.mlutils.existfeatures#

watex.utils.mlutils.existfeatures(df, features, error='raise')[source]#

Control whether the features exist or not

Parameters
  • df – a dataframe for features selections

  • features – list of features to select. Lits of features must be in the dataframe otherwise an error occurs.

  • error – str - raise if the features don’t exist in the dataframe. default is raise and ignore otherwise.

Returns

bool assert whether the features exists