Power up your data science workflow with ChatGPT
Project description
pandas-gpt
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pandas-gpt-0.0.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pandas_gpt-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c600d09c7c2f6dd4375f17ec172fea229a3c8276a848b458a51202a2acd42dbe |
|
MD5 | 048be2d4e4e5a1c7c57fc87b11c2e0b0 |
|
BLAKE2b-256 | e0a8da2907ee58d2a942a96c86fbceea8d575c665dda5dc024e7d9a4041eafa2 |