LLM4DS: Evaluating Large Language Models for Data Science Code Generation
Not on the map. Why?
Abstract (arXiv)
The adoption of Large Language Models (LLMs) for code generation in data science offers substantial potential for enhancing tasks such as data manipulation, statistical analysis, and visualization. However, the effectiveness of these models in the data science domain remains underexplored. This paper presents a controlled experiment that empirically assesses the performance of four leading LLM-based AI assistants-Microsoft Copilot (GPT-4 Turbo), ChatGPT (o1-preview), Claude (3.5 Sonnet), and Perplexity Labs (Llama-3.1-70b-instruct)-on a diverse set of data science coding challenges sourced from the Stratacratch platform. Using the Goal-Question-Metric (GQM) approach, we evaluated each model's effectiveness across task types (Analytical, Algorithm, Visualization) and varying difficulty levels. Our findings reveal that all models exceeded a 50% baseline success rate, confirming their capability beyond random chance. Notably, only ChatGPT and Claude achieved success rates significantly above a 60% baseline, though none of the models reached a 70% threshold, indicating limitations in higher standards. ChatGPT demonstrated consistent performance across varying difficulty levels, while Claude's success rate fluctuated with task complexity. Hypothesis testing indicates that task type does not significantly impact success rate overall. For analytical tasks, efficiency analysis shows no significant differences in execution times, though ChatGPT tended to be slower and less predictable despite high success rates. This study provides a structured, empirical evaluation of LLMs in data science, delivering insights that support informed model selection tailored to specific task demands. Our findings establish a framework for future AI assessments, emphasizing the value of rigorous evaluation beyond basic accuracy measures.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 10 of its 30 references that are in the map. First posted on arXiv 16 Nov 2024.
Builds on
10 of 30 references.
References · 10
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2022Using Large Language Models to Simulate Multiple Humans and Replicate Human Subject Studiescited by 515
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2023ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Designcited by 66
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
- 2024Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task Decompositioncited by 29
- 2024Towards Optimizing SQL Generation via LLM Routingcited by 5
- 2023GPT in Data Science: A Practical Exploration of Model Selectioncited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025Large Physics Models: Towards a collaborative approach with Large Language Models and Foundation Modelscited by 14
- 2026DSAEval: Evaluating Data Science Agents on a Wide Range of Real-World Data Science Problemscited by 6
- 2026Do LLM-Generated Skills Make Better AI Data Scientists? A Component Ablation Across Data-Science Workflowscited by 3
- 2025A Multimodal Conversational Agent for Tabular Data Analysiscited by 0
- 2026POTracker: Optimizing Large Language Models for Standard-Compliant Power Outage Report Generationcited by 0
- 2026UrbanDS: A Graph-Guided LLM Multi-Agent System for Data-Intensive Urban Taskscited by 0
- 2026Beyond Accuracy: A Multidimensional Evaluation of Statistical Reasoning in Large Language Modelscited by 0
- 2026Beyond Accuracy: A Multidimensional Evaluation of Statistical Reasoning in Large Language Models4 Aug 2026
- 2026UrbanDS: A Graph-Guided LLM Multi-Agent System for Data-Intensive Urban Tasks29 Jul 2026
- 2026Do LLM-Generated Skills Make Better AI Data Scientists? A Component Ablation Across Data-Science Workflows8 Jul 2026
- 2026POTracker: Optimizing Large Language Models for Standard-Compliant Power Outage Report Generation22 Jun 2026
- 2026DSAEval: Evaluating Data Science Agents on a Wide Range of Real-World Data Science Problems20 Jan 2026
- 2025A Multimodal Conversational Agent for Tabular Data Analysis23 Nov 2025
- 2025Large Physics Models: Towards a collaborative approach with Large Language Models and Foundation Models9 Jan 2025