def normalize(df):
    """ Function to apply min-max normalisation to a given variable
    
    Parameters:
            df: variable required to normalise
            
    Returns:
        result: normalised variable
    """ 
    max_value = df.max()
    min_value = df.min()
    result = (df - min_value) / (max_value - min_value)
    return result