def max_by_category(iterable):
    """
    Returns the maximum value by category.

    Args:
        iterable (list): List of tuples containing category and value pairs.

    Returns:
        tuple: Category with maximum value.
    """
    if not iterable:
        raise ValueError("iterable argument is empty")
    
    return max(iterable, key=lambda x: x[1])