def __makenumber(value):
    """
    Helper function to change the poorly formatted numbers to floats
    
    Examples:
        > value is an integer / float data type -> float type returned
        > value = '1,000', then the float value is 1000
        > value = '1 000 000.00' then the float value is 1000000
    
    Parameters
    ----------
    value : mixed type
        Can be an int, float, or string

    Returns
    -------
    number : Float
        The value object returned as a float
    """
    if type(value) == float:
        number = value
    elif type(value) == int:
        number = float(value)
    elif type(value) == str:
        number = float(value.replace(',','').replace(' ',''))
    else:
        raise Exception('Incompatible data type. Review logic.')
    
    return number