data_describe.misc.preprocessing ======================================= .. py:module:: data_describe.misc.preprocessing .. autoapisummary:: data_describe.misc.preprocessing.preprocess .. function:: preprocess(data, target, impute='simple', encode='label') Simple preprocessing pipeline for ML. :param data: A Pandas dataframe :param target: Name of the target feature :param impute: Method to use for imputing numeric variables. Only 'simple' is implemented. :param encode: Method to use for encoding categorical variables. Only 'label' is implemented. :raises NotImplementedError: Imputation or encoding method not implemented. :raises ValueError: No columns left to preprocess. :returns: (X, y) tuple of numpy arrays