Skip to main content

pandas-gpt Open In Colab

Power up your data science workflow with ChatGPT.


Installation

pip install git+https://github.com/rvanasa/pandas-gpt

Set the OPENAI_API_KEY environment variable to your OpenAI API key, or use the following code snippet:

import openai
openai.api_key = 'sk-**********'

Examples

Setup and usage examples are available in this Google Colab notebook.

import pandas as pd
import pandas_gpt

df = pd.DataFrame(...)

# Run Python code generated by ChatGPT
df.ask('do something with the dataset')

# Show additional output
df.ask('do something with the dataset', verbose=True)

# Print source code instead of running
df.ask.code('do something with the dataset')

Alternatives

  • 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 ChatGPT also apply to this library. I would recommend using pandas-gpt in a sandboxed environment such as Google Colab, Kaggle, or GitPod.

Metadata

Release files for pandas-gpt 0.1.0

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

Source distribution (sdist)

Source distribution for pandas-gpt 0.1.0
File Size Uploaded
pandas-gpt-0.1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pandas-gpt 0.1.0
File Interpreter ABI Platform
pandas_gpt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / pandas-gpt-0.1.0.tar.gz

Download URL pandas-gpt-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e839a4c0cc64bdb584b130ba9e3afe557a00e22d9de4d8986ac91ac4bb27f7a2
BLAKE2b-256 checksum
How to use checksums
a7927efa71f5ca5682e00b2554ba79a15f1ac58043899b3ae4bfda464b2285b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / pandas_gpt-0.1.0-py3-none-any.whl

Download URL pandas_gpt-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e2aee040fc642e6116b0b60d4b1c10f4574895d582697fa925aadfb14269b80
BLAKE2b-256 checksum
How to use checksums
bc2c83c6c97b07b38058ff2a96ade960d2b0c6fa072ff05303ce469965876c4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

1.0.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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