(self, data_instances, pre_header)
return result_data
align features of given data, raise error if value in given schema not found
        :param data_instances: data table
        :param pre_header: list, header of model
        :return: dtable, aligned data
align features of given data, raise error if value in given schema not found
        :param data_instances: data table
        :param pre_header: list, header of model
        :return: dtable, aligned data
align features of given data raise error if value in given schema not found : param data_instances : data table : param pre_header : list header of model : return : dtable aligned data
def align_data_header(self, data_instances, pre_header):
        """
        align features of given data, raise error if value in given schema not found
        :param data_instances: data table
        :param pre_header: list, header of model
        :return: dtable, aligned data
        """
        result_data = self._align_cache.get(id(data_instances))
        if result_data is None:
            result_data = header_alignment(
                data_instances=data_instances, pre_header=pre_header
            )
            self._align_cache[id(data_instances)] = result_data
        return result_data
def align_data_header ( self , data_instances , pre_header ) : result_data = self . _align_cache . get ( id ( data_instances ) ) if result_data is None : result_data = header_alignment ( data_instances = data_instances , pre_header = pre_header ) self . _align_cache [ id ( data_instances ) ] = result_data return result_data