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
2.0.14
2.0.13
2.0.12
2.0
1.5a2
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.21
1.5.20
1.5.2
1.5.19
1.5.18
1.5.17
1.5.16
1.5.15a0
1.5.15
1.5.14
1.5.13
1.5.12
1.5.11
1.5.10
1.5.1
1.5.0a1
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.10
1.4.1
1.4
1.3b2
1.3b1
1.3.3
1.3.2
1.3.1
1.3
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.10
1.2.1
1.2
1.1.3
1.1.2
1.1.1
1.1
1.0b1
1.0a2
1.0a1
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.11
1.0.10
1.0.1
1.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.12
0.6.11
0.6.10
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.1
0.2.0
0.1.1
0.1.0
0.0.3
0.0.2
0.0.1
توضیحات
Chat with your database (SQL, CSV, pandas, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | pandasai-3.0.0b9 |
| نام | pandasai |
| نسخه کتابخانه | 3.0.0b9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gabriele Venturi |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/pandasai/ |
| مجوز | MIT |
# 
[](https://pypi.org/project/pandasai/)
[](https://github.com/sinaptik-ai/pandas-ai/actions/workflows/ci-core.yml/badge.svg)
[](https://github.com/sinaptik-ai/pandas-ai/actions/workflows/cd.yml/badge.svg)
[](https://codecov.io/gh/sinaptik-ai/pandas-ai)
[](https://discord.gg/KYKj9F2FRH)
[](https://pepy.tech/project/pandasai) [](https://opensource.org/licenses/MIT)
[](https://colab.research.google.com/drive/1ZnO-njhL7TBOYPZaqvMvGtsjckZKrv2E?usp=sharing)
PandasAI is a Python library that makes it easy to ask questions to your data in natural language. It helps non-technical users to interact with their data in a more natural way, and it helps technical users to save time, and effort when working with data.
# 🔧 Getting started
You can find the full documentation for PandasAI [here](https://docs.pandas-ai.com/).
## 📚 Using the library
### Python Requirements
Python version `3.8+ <=3.11`
### 📦 Installation
You can install the PandasAI library using pip or poetry.
With pip:
```bash
pip install pandasai
pip install pandasai-litellm
```
With poetry:
```bash
poetry add pandasai
poetry add pandasai-litellm
```
### 💻 Usage
#### Ask questions
```python
import pandasai as pai
from pandasai_litellm.litellm import LiteLLM
# Initialize LiteLLM with your OpenAI model
llm = LiteLLM(model="gpt-4.1-mini", api_key="YOUR_OPENAI_API_KEY")
# Configure PandasAI to use this LLM
pai.config.set({
"llm": llm
})
# Load your data
df = pai.read_csv("data/companies.csv")
response = df.chat("What is the average revenue by region?")
print(response)
```
---
Or you can ask more complex questions:
```python
df.chat(
"What is the total sales for the top 3 countries by sales?"
)
```
```
The total sales for the top 3 countries by sales is 16500.
```
#### Visualize charts
You can also ask PandasAI to generate charts for you:
```python
df.chat(
"Plot the histogram of countries showing for each one the gd. Use different colors for each bar",
)
```

#### Multiple DataFrames
You can also pass in multiple dataframes to PandasAI and ask questions relating them.
```python
import pandasai as pai
from pandasai_litellm.litellm import LiteLLM
# Initialize LiteLLM with your OpenAI model
llm = LiteLLM(model="gpt-4.1-mini", api_key="YOUR_OPENAI_API_KEY")
# Configure PandasAI to use this LLM
pai.config.set({
"llm": llm
})
employees_data = {
'EmployeeID': [1, 2, 3, 4, 5],
'Name': ['John', 'Emma', 'Liam', 'Olivia', 'William'],
'Department': ['HR', 'Sales', 'IT', 'Marketing', 'Finance']
}
salaries_data = {
'EmployeeID': [1, 2, 3, 4, 5],
'Salary': [5000, 6000, 4500, 7000, 5500]
}
employees_df = pai.DataFrame(employees_data)
salaries_df = pai.DataFrame(salaries_data)
pai.chat("Who gets paid the most?", employees_df, salaries_df)
```
```
Olivia gets paid the most.
```
#### Docker Sandbox
You can run PandasAI in a Docker sandbox, providing a secure, isolated environment to execute code safely and mitigate the risk of malicious attacks.
##### Python Requirements
```bash
pip install "pandasai-docker"
```
##### Usage
```python
import pandasai as pai
from pandasai_docker import DockerSandbox
from pandasai_litellm.litellm import LiteLLM
# Initialize LiteLLM with your OpenAI model
llm = LiteLLM(model="gpt-4.1-mini", api_key="YOUR_OPENAI_API_KEY")
# Configure PandasAI to use this LLM
pai.config.set({
"llm": llm
})
# Initialize the sandbox
sandbox = DockerSandbox()
sandbox.start()
employees_data = {
'EmployeeID': [1, 2, 3, 4, 5],
'Name': ['John', 'Emma', 'Liam', 'Olivia', 'William'],
'Department': ['HR', 'Sales', 'IT', 'Marketing', 'Finance']
}
salaries_data = {
'EmployeeID': [1, 2, 3, 4, 5],
'Salary': [5000, 6000, 4500, 7000, 5500]
}
employees_df = pai.DataFrame(employees_data)
salaries_df = pai.DataFrame(salaries_data)
pai.chat("Who gets paid the most?", employees_df, salaries_df, sandbox=sandbox)
# Don't forget to stop the sandbox when done
sandbox.stop()
```
```
Olivia gets paid the most.
```
You can find more examples in the [examples](examples) directory.
## 📜 License
PandasAI is available under the MIT expat license, except for the `pandasai/ee` directory of this repository, which has its [license here](https://github.com/sinaptik-ai/pandas-ai/blob/main/ee/LICENSE).
If you are interested in managed PandasAI Cloud or self-hosted Enterprise Offering, [contact us](https://pandas-ai.com).
## Resources
- [Docs](https://docs.pandas-ai.com/) for comprehensive documentation
- [Examples](examples) for example notebooks
- [Discord](https://discord.gg/KYKj9F2FRH) for discussion with the community and PandasAI team
## 🤝 Contributing
Contributions are welcome! Please check the outstanding issues and feel free to open a pull request.
For more information, please check out the [contributing guidelines](CONTRIBUTING.md).
### Thank you!
[](https://github.com/sinaptik-ai/pandas-ai/graphs/contributors)
نیازمندی
| مقدار | نام |
|---|---|
| - | python-dotenv<2.0.0,>=1.0.0 |
| - | pandas<3.0.0,>=2.0.3 |
| - | scipy==1.10.1 |
| - | astor<0.9.0,>=0.8.1 |
| - | matplotlib<3.8,>=3.7.1 |
| - | pydantic<3.0.0,>=2.6.4 |
| - | duckdb<2.0.0,>=1.0.0 |
| - | pillow<11.0.0,>=10.1.0 |
| - | requests<3.0.0,>=2.31.0 |
| - | jinja2<4.0.0,>=3.1.3 |
| - | numpy<2.0,>=1.17 |
| - | openpyxl<4.0.0,>=3.1.5 |
| - | seaborn<0.13.0,>=0.12.2 |
| - | sqlglot<26.0.0,>=25.0.3 |
| - | pyarrow<19.0.0,>=14.0.1 |
| - | pyyaml<7.0.0,>=6.0.2 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <3.12,>=3.8 | Python |
نحوه نصب
نصب پکیج whl pandasai-3.0.0b9:
pip install pandasai-3.0.0b9.whl
نصب پکیج tar.gz pandasai-3.0.0b9:
pip install pandasai-3.0.0b9.tar.gz