watex.base.selectfeatures#

watex.base.selectfeatures(df, features=None, include=None, exclude=None, coerce=False, **kwd)[source]#

Select features and return new dataframe.

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.

  • include – the type of data to retrieved in the dataframe df. Can be number.

  • exclude – type of the data to exclude in the dataframe df. Can be number i.e. only non-digits data will be keep in the data return.

  • coerce – return the whole dataframe with transforming numeric columns. Be aware that no selection is done and no error is raises instead. default is False

  • kwd – additional keywords arguments from pd.astype function

Ref

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.astype.html