watex.base.existfeatures#
- watex.base.existfeatures(df, features, error='raise')[source]#
Control whether the features exists 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
raiseandignoreotherwise.
- Returns:
bool assert whether the features exists