Does an AI Assistant Help Data Scientists Explore Better Paths—or Mainly Write Code?
A 28-person Jupyter study found that workflow-step context improved recommendation acceptance, while alternatives did not show a significant effect. Here is what that means—and what it does not.
The question is not whether the code was accepted
When an AI assistant suggests the next notebook cell, “helpful” can mean several different things: the analyst inserts it, it runs, it answers the intended question, or it changes the analysis for the better. Those are not interchangeable outcomes.
A 2025 empirical study by Dhivyabharathi Ramasamy, Cristina Sarasua, and Abraham Bernstein tested an AI coding assistant designed for data-science workflows. Its useful contribution is not a verdict that assistants make analysts more productive. It is a narrower observation: telling the assistant which workflow step the analyst is working on improved acceptance of recommendations in the study, while offering alternative code paths did not produce a statistically significant difference.
That is evidence about a particular interaction design—not proof that accepted code is analytically sound, that alternatives never help, or that today’s assistants will behave the same way.
What the researchers tested
Reported. Twenty-eight data scientists, recruited through Upwork and reporting at least one year of data-science experience, were randomly assigned to four groups of seven. They used GPT-4 through the CATSci Jupyter interface. The groups varied whether recommendations included alternatives and whether prompts included an explicit data-science workflow step.
Participants completed two deliberately simple tasks: a descriptive task identifying the most highly correlated state pair in a CDC mental-health survey dataset, and a predictive task classifying credit-card transactions. The researchers measured both whether participants accepted recommendations and how correct their submitted task solutions were, using an answer key and scoring mechanism. That distinction matters: acceptance was a user-action measure, not a substitute for solution correctness.
In the authors’ analysis, adding workflow-step information was associated with a 16.57 percentage-point increase in recommendation acceptance. Predictive-task recommendations were accepted 24.36 points more often than descriptive-task recommendations; predictive tasks also had higher average task scores. By contrast, the presence of alternatives did not have a statistically significant effect. In groups where alternatives were available, 9% of accepted recommendations were alternatives. Participants nevertheless described alternatives as a way to encounter new libraries or syntax patterns.
These are reported findings from a small controlled study. They are not a replicated result from our own analysis. The authors made anonymized interaction and analysis materials public, along with the task files, but this article does not claim to have rerun their experiment.
Why workflow context may matter more than a menu of options
The study suggests a practical distinction. “I am exploring the data” or “I am evaluating a model” can constrain what a useful next step looks like. A prompt that names the analytical step may therefore make a recommendation more relevant. Merely showing multiple code snippets does not ensure the analyst gets meaningfully different methods—or understands when their assumptions differ.
The task contrast is also a reminder that data-science work is not just code production. The authors found recommendations were more readily accepted, and final task scores higher, for their predictive task than for their descriptive task. They suggest that predictive code may follow more repeatable library patterns, while descriptive questions are more varied. That explanation is the authors’ interpretation, not a separately tested causal mechanism. And one correlation-finding task cannot stand in for the full range of exploratory analysis.
A review card for the next notebook recommendation
Teams can operationalize the finding without treating it as a universal prompt recipe. For each AI-suggested cell, record:
- Workflow step and intent: What stage is this, and what decision or question should the code serve?
- A simple baseline: What small, independently understood calculation or existing method should the result agree with?
- Execution and assumptions: Does the code run on the intended data? Are missingness, leakage, grouping, units, and metric definitions handled as intended?
- Analytical effect: Did the output merely save typing, or did it change a finding, model choice, or conclusion? Record which—and why.
- Alternative value: If options are offered, are they genuinely different analytical paths, with their assumptions stated, or just stylistic variants?
For a local comparison, a team could hold the dataset, task, model, and evaluation rubric fixed while comparing generic prompts with prompts that name the workflow step. Judge executable correctness and agreement with a human-reviewed expected result separately from acceptance and time spent. This would be a proposed evaluation; no such reconstruction was run for this article. Stop if the task’s expected answer cannot be independently checked or the model/prompt conditions are not comparable.
Evidence boundary
The experiment had 28 participants, one GPT-4-based assistant and notebook interface, and two simple tasks. The participants were recruited online and reported their experience; the setting was controlled rather than a production team workflow. The study therefore cannot establish effects for other models, complex analyses, long-running projects, or current commercial coding products. Its acceptance outcome captures participant actions, while task scores provide a separate correctness measure; neither directly measures durable productivity or improved scientific conclusions.
Observed: the paper and linked public records are accessible, and the study describes its design, measures, and results. Reported: the participant counts and statistical results above come from the authors. Reconstructed: none; we did not rerun the study. Hypothesis: explicit workflow context may improve relevance in other data-science settings, but that needs evaluation on the actual work and error costs at hand.
The operational takeaway is modest but useful: ask the assistant to orient to the analytical step, then verify its output against an independent baseline. Treat acceptance as a signal about interaction—not as a quality certificate.
Sources and companion
- Ramasamy, Sarasua & Bernstein, “AI Support for Data Scientists: An Empirical Study on Workflow and Alternative Code Recommendations”, Empirical Software Engineering (2025).
- Anonymized interaction and replication materials.
- Data-science task files.
- Previous episode: When Random Splits Test the Wrong Generalization.
- 中文 companion: AI 助手能帮助数据科学家探索更好的路径吗?还是主要在写代码?.