Skip to main content

SMART_PANDAS 🤖 Open In Colab

Supercharge your data science workflows with 🐐 Ollama models.


smart-pandas is a Python library highly inspired by the pandas-gpt, to perform the diverse operations on a pandas DataFrame using llama 2 model.

Installation

First install the ollama from 🐐ollama. Ollama is required and need to be installed must.

pip install smart-pandas

Examples

import pandas as pd
import smart_pandas

df = pd.DataFrame('https://raw.githubusercontent.com/owid/covid-19-data/master/scripts/input/un/handwashing_facilities.csv')

# Data transformation
df = df.ask('Remove iso_code')

# Queries
top_10 = df.ask('what are the top 10 most locations having handwashing_facilities, as a table')

# Plotting
top_10=top_10.ask("Reset index")
top_10.ask('horizontal bar plot, seaborn colors with width 700')

Aurthor

Muntakimur Rahaman

Senior Data Scientist,

Innova-analytics.ai

Contact: muntakim.cse@gmail.com

Alternatives

  • pandas-gpt: OpenAI based pandas auto-completion (Paid api key)
  • GitHub Copilot: General-purpose code completion (paid subscription)
  • Sketch: AI-powered data summarization and code suggestions (works without an API key)

Disclaimer

Please note that the limitations of llama 2 also apply to this library. I would recommend using smart-pandas in a sandboxed environment such as Google Colab, Kaggle, or GitPod.

Metadata

Release files for smart-pandas 0.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smart-pandas 0.0.16
File Size Uploaded Provenance Actions
smart_pandas-0.0.16.tar.gz 3.2 kB Without provenance Details for smart_pandas-0.0.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smart-pandas 0.0.16
File Interpreter ABI Platform Actions
smart_pandas-0.0.16-py3-none-any.whl Python 3 none any Details for smart_pandas-0.0.16-py3-none-any.whl

Total release size: 6.8 kB

Release files / smart_pandas-0.0.16.tar.gz

Download URL smart_pandas-0.0.16.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8455fda2ce5bee133123c13112b090ab6c5592603c1dd5d95c2da603e21278d9
BLAKE2b-256 checksum
How to use checksums
049b8b79d7d8818c59f119ed902f62c5321882b288ef500405b9c76e2a2cf6a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / smart_pandas-0.0.16-py3-none-any.whl

Download URL smart_pandas-0.0.16-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bf167f0e9b81809ae1bd1b1b3226173cde2515441b23f5fa59e1a9ac53a071e
BLAKE2b-256 checksum
How to use checksums
ae6703680f098cf1af20805c6a999d0cb850df2296343ed418e0c1a4ef6127a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Security for smart-pandas 0.0.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page