Python SDK for conversational data analysis using LLMs and RAG
Top 2.1% on sourcepulse
PandasAI is a Python library designed to make data analysis conversational, enabling users to query databases, CSVs, and datalakes using natural language. It targets both technical and non-technical users, aiming to simplify data interaction and accelerate analysis workflows through Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG).
How It Works
PandasAI integrates with LLMs to interpret natural language queries and translate them into executable code (e.g., Python/Pandas or SQL). It supports RAG for enhanced context and accuracy, allowing it to query various data sources. The library can also generate visualizations based on user prompts, and it supports querying across multiple DataFrames. A key feature is its Docker sandbox for secure code execution.
Quick Start & Requirements
pip install "pandasai>=3.0.0b2"
or poetry add "pandasai>=3.0.0b2"
https://app.pandabi.ai
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
pandasai/ee
directory has a separate license.Limitations & Caveats
The project is currently in beta (v3), meaning features and functionality are in progress and subject to change. The default LLM (BambooLLM) requires an API key, and while other LLMs can be configured, this is not explicitly detailed in the README.
2 days ago
1 day