{"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":"index","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[],"history":"","construction":"","limitations":"","saturation":"","scores":[]}},"task_id":"4459699f-a013-5b34-8ce1-e5d1843d05d4","task_key":"default--v0~2e1~2e0~5fhf--4459699f-a013-5b34-8ce1-e5d1843d05d4","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 4459699f-a013-5b34-8ce1-e5d1843d05d4","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom sklearn.decomposition import PCA\\ndef task_func(df):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom sklearn.decomposition import PCA\\n\\ndef task_func(df):\\n    \\\"\\\"\\\"\\n    Perform Principal Component Analysis (PCA) on the DataFrame and record the first two main components.\\n    \\n    Parameters:\\n    - df (DataFrame): The pandas DataFrame.\\n    \\n    Returns:\\n    - df_pca (DataFrame): The DataFrame with the first two principal components named 'PC1' and 'PC2' as columns.\\n\\n    Requirements:\\n    - pandas\\n    - sklearn\\n    \\n    Example:\\n    >>> df = pd.DataFrame([[5.1, 3.5, 1.4], [4.9, 3.0, 1.4], [4.7, 3.2, 1.3]], columns = ['x', 'y', 'z'])\\n    >>> df_pca = task_func(df)\\n    >>> print(df_pca)\\n            PC1       PC2\\n    0  0.334781 -0.011992\\n    1 -0.187649 -0.142630\\n    2 -0.147132  0.154622\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Perform Principal Component Analysis (PCA) on the DataFrame and record the first two main components.\\nThe function should output with:\\n    df_pca (DataFrame): The DataFrame with the first two principal components named 'PC1' and 'PC2' as columns.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom sklearn.decomposition import PCA\\ndef task_func(df):\\n```\",\"libs\":\"['pandas', 'sklearn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}