(self, X, y=None)
return result
Transform the data.

        Parameters
        ----------
        X :
            Features; see input_transform schema of the operator.

        Returns
        -------
        result :
            Transformed features; see output_transform schema of the operator.
Transform the data.
Transform the data .
def transform(self, X, y=None) -> Any:
        """Transform the data.

        Parameters
        ----------
        X :
            Features; see input_transform schema of the operator.

        Returns
        -------
        result :
            Transformed features; see output_transform schema of the operator.
        """
        # logger.info("%s enter transform %s", time.asctime(), self.name())
        X = self._validate_input_schema("X", X, "transform")
        if "y" in [
            required_property.lower()
            for required_property in self.input_schema_transform().get("required", [])
        ]:
            y = self._validate_input_schema("y", y, "transform")
            raw_result = self._impl_instance().transform(X, y)
        else:
            raw_result = self._impl_instance().transform(X)
        result = self._validate_output_schema(raw_result, "transform")
        # logger.info("%s exit  transform %s", time.asctime(), self.name())
        return result
def transform ( self , X , y = None ) -> Any : # logger.info("%s enter transform %s", time.asctime(), self.name()) X = self . _validate_input_schema ( "X" , X , "transform" ) if "y" in [ required_property . lower ( ) for required_property in self . input_schema_transform ( ) . get ( "required" , [ ] ) ] : y = self . _validate_input_schema ( "y" , y , "transform" ) raw_result = self . _impl_instance ( ) . transform ( X , y ) else : raw_result = self . _impl_instance ( ) . transform ( X ) result = self . _validate_output_schema ( raw_result , "transform" ) # logger.info("%s exit  transform %s", time.asctime(), self.name()) return result