Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
pandas-ollama
Natural language interface for pandas DataFrame analysis using Ollama models.
Installation
pip install pandas-ollama
Requirements
- Python 3.7+
- Ollama server running locally or remotely
- Required packages: pandas, matplotlib, seaborn, requests
Quick Start
import pandas as pd
from pandas_ollama import MyPandasAI
# Create a DataFrame
df = pd.DataFrame({
'Product': ['Laptop', 'Phone', 'Tablet'],
'Price': [1000, 800, 500],
'Stock': [50, 100, 75]
})
# Create PandasOllama instance
panoll = MyPandasAI(df, model="llama3:latest")
# Ask a question about your data
result = panoll.ask("What is the average price of products?")
print(result.content)
# Create a visualization
result = panoll.plot("Show the distribution of prices", viz_type="bar")
# Display the visualization in a notebook
if result.visualization:
import base64
from IPython.display import Image
image_data = base64.b64decode(result.visualization)
Image(data=image_data)
Features
- Natural language querying of pandas DataFrames
- Automatic visualization generation
- Support for various chart types: bar, line, scatter, hist, pie, heatmap, and more
- Intelligent data type detection
- Data transformation through natural language commands
License
MIT License
Release files for pandas-ollama 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pandas_ollama-1.0.3.tar.gz | 29.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pandas_ollama-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.2 kB
Release files / pandas_ollama-1.0.3.tar.gz
| Download URL | pandas_ollama-1.0.3.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2193fc6093f22e51e12760dee2010b7d3e1c4d475b9b40229bb16d43e1e97eba
|
|
BLAKE2b-256 checksum How to use checksums |
e99739f9743d9c9edf615a7fdb4ee2cc969461cf9956d916b84a00f5c57dc532
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pandas_ollama-1.0.3-py3-none-any.whl
| Download URL | pandas_ollama-1.0.3-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3c15c9f9d69c4bb36f0d370020c31da55600d2590f149aa8d1ff91571a3a15c
|
|
BLAKE2b-256 checksum How to use checksums |
511ba7e2dd05eb2ac669ad5cd0decd6f2454942d14a1422d0c03d1adb61b13d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|