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

        :param df: A vaex DataFrame.

        :return 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]
            a = self.feature_range[0]
            b = self.feature_range[1]
            expr = copy[self.features[i]]
            expr = (b-a)*(expr-self.fmin_[i])/(self.fmax_[i]-self.fmin_[i]) + a
            copy[name] = expr
        return copy

        Transform a DataFrame with a fitted MinMaxScaler.

        :param df: A vaex DataFrame.

        :return copy: a shallow copy of the DataFrame that includes the scaled features.
        :rtype: DataFrame
        
Transform a DataFrame with a fitted MinMaxScaler.
Transform a DataFrame with a fitted MinMaxScaler .
def transform(self, df):
        copy = df.copy()
        for i in range(len(self.features)):
            name = self.prefix + self.features[i]
            a = self.feature_range[0]
            b = self.feature_range[1]
            expr = copy[self.features[i]]
            expr = (b-a)*(expr-self.fmin_[i])/(self.fmax_[i]-self.fmin_[i]) + a
            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 ] a = self . feature_range [ 0 ] b = self . feature_range [ 1 ] expr = copy [ self . features [ i ] ] expr = ( b - a ) * ( expr - self . fmin_ [ i ] ) / ( self . fmax_ [ i ] - self . fmin_ [ i ] ) + a copy [ name ] = expr return copy
Transform a DataFrame with a fitted MinMaxScaler.
Transform a DataFrame with a fitted MinMaxScaler .
'''
        Transform a DataFrame with a fitted MinMaxScaler.

        :param df: A vaex DataFrame.

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