packages/vaex-ml/vaex/ml/transformations.py
def transform(self, df):
        '''
        Transform a DataFrame with a fitted RobustScaler.

        :param df: A vaex DataFrame.

        :returns copy: a shallow copy of the DataFrame that includes the scaled features.
        :rtype: DataFrame
        '''

        copy = df.copy()
        for i in range(len(self.features)):
            name = self.prefix+self.features[i]
            expr = copy[self.features[i]]
            if self.with_centering:
                expr = expr - self.center_[i]
            if self.with_scaling:
                expr = expr / self.scale_[i]
            copy[name] = expr
        return copy

        Transform a DataFrame with a fitted RobustScaler.

        :param df: A vaex DataFrame.

        :returns copy: a shallow copy of the DataFrame that includes the scaled features.
        :rtype: DataFrame
        
Transform a DataFrame with a fitted RobustScaler.
Transform a DataFrame with a fitted RobustScaler .
def transform(self, df):
        copy = df.copy()
        for i in range(len(self.features)):
            name = self.prefix+self.features[i]
            expr = copy[self.features[i]]
            if self.with_centering:
                expr = expr - self.center_[i]
            if self.with_scaling:
                expr = expr / self.scale_[i]
            copy[name] = expr
        return copy
def transform ( self , df ) : copy = df . copy ( ) for i in range ( len ( self . features ) ) : name = self . prefix + self . features [ i ] expr = copy [ self . features [ i ] ] if self . with_centering : expr = expr - self . center_ [ i ] if self . with_scaling : expr = expr / self . scale_ [ i ] copy [ name ] = expr return copy
Transform a DataFrame with a fitted RobustScaler.
Transform a DataFrame with a fitted RobustScaler .
'''
        Transform a DataFrame with a fitted RobustScaler.

        :param df: A vaex DataFrame.

        :returns copy: a shallow copy of the DataFrame that includes the scaled features.
        :rtype: DataFrame
        '''
a shallow copy of the DataFrame that includes the scaled features.
a shallow copy of the DataFrame that includes the scaled features .
copy
self
df
A vaex DataFrame.
A vaex DataFrame .