def user_type_udf(user):
    """Converts user type to 'Subscriber' or 'Customer'."""
    if not user:
        return None

    if user.lower().startswith("sub"):
        return "Subscriber"
    elif user.lower().startswith("cust"):
        return "Customer"