data_preprocess.py
def rescale(data, continuous, MinMax):
    '''
    Reverse the Normalization done in the scale function above.

    Args:
        data: DataFrame containing the dataset
        continuous: Array-like structure that contains the names of all the continuous features
        MinMax: A DataFrame that contains the minimum and maximum values of each variable

    Returns:
        data: DataFrame after reversing Normalization
    '''
    for col in continuous:
        data[col] = (data[col]*(MinMax.loc['max', col] - MinMax.loc['min', col])) + MinMax.loc['min', col]
    return data

    Reverse the Normalization done in the scale function above.

    Args:
        data: DataFrame containing the dataset
        continuous: Array-like structure that contains the names of all the continuous features
        MinMax: A DataFrame that contains the minimum and maximum values of each variable

    Returns:
        data: DataFrame after reversing Normalization
    
Reverse the Normalization done in the scale function above.
Reverse the Normalization done in the scale function above .
def rescale(data, continuous, MinMax):
    for col in continuous:
        data[col] = (data[col]*(MinMax.loc['max', col] - MinMax.loc['min', col])) + MinMax.loc['min', col]
    return data
def rescale ( data , continuous , MinMax ) : for col in continuous : data [ col ] = ( data [ col ] * ( MinMax . loc [ 'max' , col ] - MinMax . loc [ 'min' , col ] ) ) + MinMax . loc [ 'min' , col ] return data
Reverse the Normalization done in the scale function above.
Reverse the Normalization done in the scale function above .
'''
    Reverse the Normalization done in the scale function above.

    Args:
        data: DataFrame containing the dataset
        continuous: Array-like structure that contains the names of all the continuous features
        MinMax: A DataFrame that contains the minimum and maximum values of each variable

    Returns:
        data: DataFrame after reversing Normalization
    '''
DataFrame after reversing Normalization
DataFrame after reversing Normalization
data
data
DataFrame containing the dataset
DataFrame containing the dataset
continuous
Array-like structure that contains the names of all the continuous features
Array - like structure that contains the names of all the continuous features
MinMax
A DataFrame that contains the minimum and maximum values of each variable
A DataFrame that contains the minimum and maximum values of each variable