def standardize_tailmen(tailmen):
    """This function aims at standardizing the household size. The column
    has mixed types (ints and strings).

    Args:
        tailmen (str): household size as recorded, can be category (1 to 4 people)
        or float (4.0 = there are 4 people in the household).

    Returns:
        tailmen (str): only categories
    """
    if len(tailmen) < 5:
        count_tailmen = float(tailmen)
        if count_tailmen < 5:
            tailmen = "1 à 4 personnes"
            return tailmen
        elif count_tailmen < 9 and count_tailmen >= 5:
            tailmen = "5 à 8 personnes"
            return tailmen
        elif count_tailmen < 13 and count_tailmen >= 9:
            tailmen = "9 à 12 personnes"
            return tailmen
        else:
            tailmen = "13 personnes et plus"
            return tailmen
    else:
        return tailmen