python/ray/ml/preprocessor.py
def transform_batch(self, df: DataBatchType) -> DataBatchType:
        """Transform a single batch of data.

        Args:
            df (DataBatchType): Input data batch.

        Returns:
            DataBatchType: The transformed data batch.
        """
        fit_status = self.fit_status()
        if fit_status in (
            Preprocessor.FitStatus.PARTIALLY_FITTED,
            Preprocessor.FitStatus.NOT_FITTED,
        ):
            raise PreprocessorNotFittedException(
                "`fit` must be called before `transform_batch`."
            )
        return self._transform_batch(df)
Transform a single batch of data.

        Args:
            df (DataBatchType): Input data batch.

        Returns:
            DataBatchType: The transformed data batch.
        
Transform a single batch of data.
Transform a single batch of data .
def transform_batch(self, df: DataBatchType) -> DataBatchType:
        fit_status = self.fit_status()
        if fit_status in (
            Preprocessor.FitStatus.PARTIALLY_FITTED,
            Preprocessor.FitStatus.NOT_FITTED,
        ):
            raise PreprocessorNotFittedException(
                "`fit` must be called before `transform_batch`."
            )
        return self._transform_batch(df)
def transform_batch ( self , df : DataBatchType ) -> DataBatchType : fit_status = self . fit_status ( ) if fit_status in ( Preprocessor . FitStatus . PARTIALLY_FITTED , Preprocessor . FitStatus . NOT_FITTED , ) : raise PreprocessorNotFittedException ( "`fit` must be called before `transform_batch`." ) return self . _transform_batch ( df )
Transform a single batch of data.
Transform a single batch of data .
"""Transform a single batch of data.

        Args:
            df (DataBatchType): Input data batch.

        Returns:
            DataBatchType: The transformed data batch.
        """
The transformed data batch.
The transformed data batch .
DataBatchType
self
df
DataBatchType
Input data batch.
Input data batch .