DataFrame QA: A Universal LLM Framework on DataFrame Question Answering Without Data Exposure
Not on the map. Why?
Abstract (arXiv)
This paper introduces DataFrame question answering (QA), a novel task that utilizes large language models (LLMs) to generate Pandas queries for information retrieval and data analysis on dataframes, emphasizing safe and non-revealing data handling. Our method, which solely relies on dataframe column names, not only ensures data privacy but also significantly reduces the context window in the prompt, streamlining information processing and addressing major challenges in LLM-based data analysis. We propose DataFrame QA as a comprehensive framework that includes safe Pandas query generation and code execution. Various LLMs, notably GPT-4, are evaluated using the pass@1 metric on the renowned WikiSQL and our newly developed 'UCI-DataFrameQA', tailored for complex data analysis queries. Our findings indicate that GPT-4 achieves pass@1 rates of 86% on WikiSQL and 97% on UCI-DataFrameQA, underscoring its capability in securely retrieving and aggregating dataframe values and conducting sophisticated data analyses. This approach, deployable in a zero-shot manner without prior training or adjustments, proves to be highly adaptable and secure for diverse applications.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 21 of its 22 references that are in the map. First posted on arXiv 27 Jan 2024.
Builds on
21 of 22 references.
References · 21
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 509
- 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 432
- 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 395
- 2021TAPEX: Table Pre-training via Learning a Neural SQL Executorcited by 233
9 more
- 2022UnifiedSKG: Unifying and Multi-Tasking Structured Knowledge Grounding with Text-to-Text Language Modelscited by 231
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 177
- 2022Large Language Models are few(1)-shot Table Reasonerscited by 116
- 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 74
- 2023Table-GPT: Table-tuned GPT for Diverse Table Taskscited by 69
- 2021Capturing Row and Column Semantics in Transformer Based Question Answering over Tablescited by 31
- 2021SeaD: End-to-end Text-to-SQL Generation with Schema-aware Denoisingcited by 27
- 2021CLTR: An End-to-End, Transformer-Based System for Cell Level Table Retrieval and Table Question Answeringcited by 9
Built on by
Citing papers per year: 2024: 2; 2025: 3.
5 papers.
- 2024Large Language Models Meet NLP: A Surveycited by 102
- 2024GoNoGo: An Efficient LLM-based Multi-Agent System for Streamlining Automotive Software Release Decision-Makingcited by 6
- 2025GateLens: A Reasoning-Enhanced LLM Agent for Automotive Software Release Analyticscited by 4
- 2025Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and Evaluationcited by 4
- 2025Diverse In-Context Example Selection After Decomposing Programs and Aligned Utterances Improves Semantic Parsingcited by 1
- 2025Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and Evaluation8 Oct 2025
- 2025Diverse In-Context Example Selection After Decomposing Programs and Aligned Utterances Improves Semantic Parsing4 Apr 2025
- 2025GateLens: A Reasoning-Enhanced LLM Agent for Automotive Software Release Analytics27 Mar 2025
- 2024GoNoGo: An Efficient LLM-based Multi-Agent System for Streamlining Automotive Software Release Decision-Making19 Aug 2024
- 2024Large Language Models Meet NLP: A Survey21 May 2024