Practical overview
When it fits
Use it in a Python or notebook workflow when you already have a pandas DataFrame and want to request queries, transformations or plots in natural language.
Who it is for
- Python developers and data scientists working with pandas DataFrames.
- Notebook users who want to express tabular queries or transformations in natural language.
Documented uses
- Ask questions about tabular data and receive results, including tables.
- Request DataFrame transformations such as filtering rows or adding a categorized column.
- Generate plots from a DataFrame using natural-language instructions.
- Select a documented model integration or connect a custom code-generation completer.
Requirements & limits
- The primary workflow requires Python, pandas and a configured language-model completer.
- The README documents OpenAI, LiteLLM integrations including Gemini and Hugging Face model identifiers, OpenRouter, Azure OpenAI and a custom completer interface.
- The verbose option can show generated source code before it runs; the mutable option allows changes to the original dataset.
- The repository identifies the project as MIT-licensed and public.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install and configure pandas-gpt with OpenAI
Prepare the library to make DataFrame requests through the documented OpenAI completer.
Before you start
- Python environment with pandas
- OpenAI API key
Steps
Install the OpenAI extra with the command below.
pip install pandas-gpt[openai]Set the
OPENAI_API_KEYenvironment variable or configure the key in Python.Import pandas-gpt and configure or use the documented OpenAI completer.
Expected outcome
The library is set up to use an OpenAI language model for pandas-gpt requests.
Guide limitations
- An OpenAI API key is needed for the documented OpenAI setup.
- The README cautions that ChatGPT limitations apply and recommends a sandboxed environment.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- rvanasa/pandas-gpt · Official homepage title · retained in its source language

