def normalization(arr):
    """
    normalization: scale arrary or DataFrame to mean zero and range from -1 to 1    
    Parameters:
        arr: numpy arrary or pandas DataFrame
    Return:
        scaled arrary value
    """
    return (arr - arr.mean(0)) / (arr.max(0) - arr.min(0))