def cleanBath(x):
    """
    This is a helper function to cleanup the number of bathrooms
    """
    #replacing 8+ rooms with 8 rooms
    if x == '8+':
        return 8

    #if the value is less than 8 and is a number keep it!
    if float(x) < 8:
        return x

    #all the other numbers look like garbage values
    #replace those with 1 bathroom since that is 90% of all properties
    else:
        return 1