dfArena: An Empirical Study of Coding Agent Behavior in DataFrame Programming
Weizheng Lu, Zhaoyang Ma, Yanjie Gao, Wei Lu, Yueguo Chen
As enterprises increasingly adopt AI agents for data analytics, coding agents are emerging as a natural-language interface for building DataFrame-based analysis and preparation workflows. In practice, users may start with unclear requests, refine them through multiple rounds of interaction, and target backends beyond widely used pandas, such as PySpark. In this setting, it remains unclear how reliably agents interpret users' requirements and generate correct DataFrame programs across backends. We present dfArena, an evaluation framework for agentic DataFrame programming. It comprises 472 curated workloads from DataAgentBench, PrepBench, and PandasBench, covering natural-language-driven DataFrame generation and pandas workflow migration. We evaluate configurations based on five models and three agent harnesses on pandas, Polars, Ibis, and PySpark, examining correctness, human-agent interaction behavior, failure mechanisms, and API cost. Our findings reveal three patterns. First, as model capability improves, the main bottleneck shifts from code implementation toward requirement interpretation; with users' clarified requirements, DataFrame backends' differences pose little obstacle…