Drawing Pandas: A Benchmark for LLMs in Generating Plotting Code

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Galimzyanov, Timur, Titov, Sergey, Golubev, Yaroslav, Bogomolov, Egor
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916631707385856
author Galimzyanov, Timur
Titov, Sergey
Golubev, Yaroslav
Bogomolov, Egor
author_facet Galimzyanov, Timur
Titov, Sergey
Golubev, Yaroslav
Bogomolov, Egor
contents This paper introduces the human-curated PandasPlotBench dataset, designed to evaluate language models' effectiveness as assistants in visual data exploration. Our benchmark focuses on generating code for visualizing tabular data - such as a Pandas DataFrame - based on natural language instructions, complementing current evaluation tools and expanding their scope. The dataset includes 175 unique tasks. Our experiments assess several leading Large Language Models (LLMs) across three visualization libraries: Matplotlib, Seaborn, and Plotly. We show that the shortening of tasks has a minimal effect on plotting capabilities, allowing for the user interface that accommodates concise user input without sacrificing functionality or accuracy. Another of our findings reveals that while LLMs perform well with popular libraries like Matplotlib and Seaborn, challenges persist with Plotly, highlighting areas for improvement. We hope that the modular design of our benchmark will broaden the current studies on generating visualizations. Our dataset and benchmark code are available online: https://huggingface.co/datasets/JetBrains-Research/PandasPlotBench; https://github.com/JetBrains-Research/PandasPlotBench.
format Preprint
id arxiv_https___arxiv_org_abs_2412_02764
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Drawing Pandas: A Benchmark for LLMs in Generating Plotting Code
Galimzyanov, Timur
Titov, Sergey
Golubev, Yaroslav
Bogomolov, Egor
Software Engineering
Artificial Intelligence
Machine Learning
This paper introduces the human-curated PandasPlotBench dataset, designed to evaluate language models' effectiveness as assistants in visual data exploration. Our benchmark focuses on generating code for visualizing tabular data - such as a Pandas DataFrame - based on natural language instructions, complementing current evaluation tools and expanding their scope. The dataset includes 175 unique tasks. Our experiments assess several leading Large Language Models (LLMs) across three visualization libraries: Matplotlib, Seaborn, and Plotly. We show that the shortening of tasks has a minimal effect on plotting capabilities, allowing for the user interface that accommodates concise user input without sacrificing functionality or accuracy. Another of our findings reveals that while LLMs perform well with popular libraries like Matplotlib and Seaborn, challenges persist with Plotly, highlighting areas for improvement. We hope that the modular design of our benchmark will broaden the current studies on generating visualizations. Our dataset and benchmark code are available online: https://huggingface.co/datasets/JetBrains-Research/PandasPlotBench; https://github.com/JetBrains-Research/PandasPlotBench.
title Drawing Pandas: A Benchmark for LLMs in Generating Plotting Code
topic Software Engineering
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.02764