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

        :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]
            expression = copy[self.features[i]]
            if self.with_mean:
                expression = expression - self.mean_[i]
            if self.with_std:
                expression = expression / self.std_[i]
            copy[name] = expression
        return copy

        Transform a DataFrame with a fitted StandardScaler.

        :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 StandardScaler.
Transform a DataFrame with a fitted StandardScaler .
def transform(self, df):
        copy = df.copy()
        for i in range(len(self.features)):
            name = self.prefix+self.features[i]
            expression = copy[self.features[i]]
            if self.with_mean:
                expression = expression - self.mean_[i]
            if self.with_std:
                expression = expression / self.std_[i]
            copy[name] = expression
        return copy
def transform ( self , df ) : copy = df . copy ( ) for i in range ( len ( self . features ) ) : name = self . prefix + self . features [ i ] expression = copy [ self . features [ i ] ] if self . with_mean : expression = expression - self . mean_ [ i ] if self . with_std : expression = expression / self . std_ [ i ] copy [ name ] = expression return copy
Transform a DataFrame with a fitted StandardScaler.
Transform a DataFrame with a fitted StandardScaler .
'''
        Transform a DataFrame with a fitted StandardScaler.

        :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 .