(self, data, transform_value, output_format=consts.ORIGIN, skip_cols=None)
return process_data
Transform input data using Imputer with fit results
        Parameters
        ----------
        data: Table, each data's value should be list
        transform_value:
        output_format: str, the output data format. The output data can be 'str', 'int', 'float'. Default origin, the original format as input data

        Returns
        ----------
        transform_data:data_instance, data after transform
Transform input data using Imputer with fit results
        Parameters
        ----------
        data: Table, each data's value should be list
        transform_value:
        output_format: str, the output data format. The output data can be 'str', 'int', 'float'. Default origin, the original format as input data
Transform input data using Imputer with fit results Parameters ---------- data : Table each data s value should be list transform_value : output_format : str the output data format . The output data can be str int float . Default origin the original format as input data
def transform(self, data, transform_value, output_format=consts.ORIGIN, skip_cols=None):
        """
        Transform input data using Imputer with fit results
        Parameters
        ----------
        data: Table, each data's value should be list
        transform_value:
        output_format: str, the output data format. The output data can be 'str', 'int', 'float'. Default origin, the original format as input data

        Returns
        ----------
        transform_data:data_instance, data after transform
        """
        if output_format not in self.support_output_format:
            raise ValueError("Unsupport output_format:{}".format(output_format))

        output_format = self.support_output_format[output_format]
        skip_cols = [] if skip_cols is None else skip_cols

        # Now all of replace_method is "col", remain replace_area temporarily
        # replace_area = self.support_replace_area[replace_method]
        replace_area = "col"
        process_data = self.__transform_replace(data, transform_value, replace_area, output_format, skip_cols)
        self.cols_transform_impute_rate = self.__get_impute_rate_from_replace_data(process_data)
        process_data = process_data.mapValues(lambda v: v[0])
        process_data.schema = data.schema

        return process_data
def transform ( self , data , transform_value , output_format = consts . ORIGIN , skip_cols = None ) : if output_format not in self . support_output_format : raise ValueError ( "Unsupport output_format:{}" . format ( output_format ) ) output_format = self . support_output_format [ output_format ] skip_cols = [ ] if skip_cols is None else skip_cols # Now all of replace_method is "col", remain replace_area temporarily # replace_area = self.support_replace_area[replace_method] replace_area = "col" process_data = self . __transform_replace ( data , transform_value , replace_area , output_format , skip_cols ) self . cols_transform_impute_rate = self . __get_impute_rate_from_replace_data ( process_data ) process_data = process_data . mapValues ( lambda v : v [ 0 ] ) process_data . schema = data . schema return process_data