{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/da-code-agent-data-science-code-generation","title":"DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models","arxiv_id":"2410.07331","date":"2024-10-09","proceeding":null,"authors":["Yiming Huang","Jianwen Luo","Yan Yu","Yitong Zhang","Fangyu Lei","Yifan Wei","Shizhu He","Lifu Huang","Xiao Liu","Jun Zhao","Kang Liu"],"abstract":"We introduce DA-Code, a code generation benchmark specifically designed to assess LLMs on agent-based data science tasks. This benchmark features three core elements: First, the tasks within DA-Code are inherently challenging, setting them apart from traditional code generation tasks and demanding advanced coding skills in grounding and planning. Second, examples in DA-Code are all based on real and diverse data, covering a wide range of complex data wrangling and analytics tasks. Third, to solve the tasks, the models must utilize complex data science programming languages, to perform intricate data processing and derive the answers. We set up the benchmark in a controllable and executable environment that aligns with real-world data analysis scenarios and is scalable. The annotators meticulously design the evaluation suite to ensure the accuracy and robustness of the evaluation. We develop the DA-Agent baseline. Experiments show that although the baseline performs better than other existing frameworks, using the current best LLMs achieves only 30.5% accuracy, leaving ample room for improvement. We release our benchmark at https://da-code-bench.github.io.","url_abs":"https://arxiv.org/abs/2410.07331v2","url_pdf":"https://arxiv.org/pdf/2410.07331v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[],"tasks":[{"task_slug":"code-generation","task_name":"Code Generation"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.07331","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.07331"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/yiyihum/dabench","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3},"by_repo_kind":{"found_in_text":{"samples":3,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"53c2d7da24e09a2a","entry":"calculate_sha256","repo":"yiyihum/dabench","repo_kind":"found_in_text","path":"da_agent/envs/utils.py","file_url":"https://github.com/yiyihum/dabench/blob/HEAD/da_agent/envs/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53c2d7da24e09a2a"}},{"code_sha256_prefix":"3d5ca1f2f9afa462","entry":"is_file_valid","repo":"yiyihum/dabench","repo_kind":"found_in_text","path":"da_agent/envs/utils.py","file_url":"https://github.com/yiyihum/dabench/blob/HEAD/da_agent/envs/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3d5ca1f2f9afa462"}},{"code_sha256_prefix":"3986ebe1b0f09da7","entry":"remove_quote","repo":"yiyihum/dabench","repo_kind":"found_in_text","path":"da_agent/agent/action.py","file_url":"https://github.com/yiyihum/dabench/blob/HEAD/da_agent/agent/action.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3986ebe1b0f09da7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}