<s>[INST] def largest_value_by_category(df, category):
    """
    Given a dataframe and a category, find the largest value of 'value' for each unique 'name' in that category.

    Parameters:
    df (pandas DataFrame): The input DataFrame.
    category (str): The column name to filter by category.

    Returns:
    pandas DataFrame: A DataFrame with the largest 'value' for each 'name' in the given category.
    """[/INST]