{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"bigcodebench","formal_name":"BigCodeBench","introduction":"BigCodeBench poses 1,140 function-level tasks drawn across 139 libraries. It tests whether a model can compose several real APIs correctly rather than write one self-contained function.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://bigcode-bench.github.io/","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"adcc187c-3767-5fc8-a33b-995fd5a2e86e","task_key":"default--v0~2e1~2e0~5fhf--adcc187c-3767-5fc8-a33b-995fd5a2e86e","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf adcc187c-3767-5fc8-a33b-995fd5a2e86e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\nCOLUMNS = ['col1', 'col2', 'col3']\\ndef task_func(data):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\n\\nCOLUMNS = ['col1', 'col2', 'col3']\\n\\ndef task_func(data):\\n    \\\"\\\"\\\"\\n    You are given a list of elements. Each element is a list with the same length as COLUMNS, representing one row a dataframe df to create. Draw a line chart with unique values in the COLUMNS[-1] of the pandas DataFrame \\\"df\\\", grouped by the rest of the columns.\\n    - The x-label should be set to the string obtained by joining all the column names (except the last one) by the character \\\"-\\\".\\n    - The y-label should be set to the last column name.\\n\\n    Parameters:\\n    - df (pandas.DataFrame): The DataFrame to be plotted.\\n\\n    Returns:\\n    - tuple: A tuple containing:\\n        - pandas.DataFrame: The DataFrame of the analyzed data.\\n        - plt.Axes: The Axes object of the plotted line chart.\\n\\n    Requirements:\\n    - pandas\\n    - matplotlib\\n\\n    Example:\\n    >>> data = [[1, 1, 1], [1, 1, 1], [1, 1, 2], [1, 2, 3], [1, 2, 3], [1, 2, 3], [2, 1, 1], [2, 1, 2], [2, 1, 3], [2, 2, 3], [2, 2, 3], [2, 2, 3]]\\n    >>> analyzed_df, ax = task_func(data)\\n    >>> print(analyzed_df)\\n       col1  col2  col3\\n    0     1     1     2\\n    1     1     2     1\\n    2     2     1     3\\n    3     2     2     1\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"You are given a list of elements. Each element is a list with the same length as COLUMNS, representing one row a dataframe df to create. Draw a line chart with unique values in the COLUMNS[-1] of the pandas DataFrame \\\"df\\\", grouped by the rest of the columns. - The x-label should be set to the string obtained by joining all the column names (except the last one) by the character \\\"-\\\". - The y-label should be set to the last column name.\\nThe function should output with:\\n    tuple: A tuple containing:\\n    pandas.DataFrame: The DataFrame of the analyzed data.\\n    plt.Axes: The Axes object of the plotted line chart.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport matplotlib.pyplot as plt\\nCOLUMNS = ['col1', 'col2', 'col3']\\ndef task_func(data):\\n```\",\"libs\":\"['pandas', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}