Skip to main content

Introducing PlotGPT, a lightweight AI assistant to help you visualize your data.

Built on top of langchain and openai

Currently it will (most likely) only support plotting in matplotlib and seaborn

Quickstart

To get started, all you need to do is give PlotGPT a pandas dataframe to inspect.

import seaborn as sns
df = sns.load_dataset('iris')

ai = PlotGPT()
ai.inspect(df)

And then ask it to start plotting.

ai.ask("plot sepal width vs sepal length")

PlotGPT will remember previous prompts (up to a certain point), so you can build off of previous plots, mimicking iterative explorate data analysis.

ai.ask("now colored it by specied")

By default, PlotGPT will return the plotting code. You can turn it off by setting the show_code flag.

ai = PlotGPT(show_code=False)

However, it is this author's recommendation to leave this setting on be able to sanity check the plots.

Questions

Should this completely replace my data analysis?

Probably not. Since this is an LLM, it's definitely not perfect. I'm more envisioning this as empowering initial discovery, where we use the AI to create a series of initial exploratory visualizations, and then have the human take over once you want to go deeper / more nuanced.

Metadata

Release files for plotgpt 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 plotgpt 0.1.0
File Size Uploaded
plotgpt-0.1.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / plotgpt-0.1.0.tar.gz

Download URL plotgpt-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9a55081caf0f4547ba261949ae88aeb1ccf22bf71dcd59a490dc7349dffbb0e1
BLAKE2b-256 checksum
How to use checksums
852339de3fe9f9f605b9fce378d41fdde278effa0163419715c08f47b8eeec5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.8 Darwin/21.6.0

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

Download URL plotgpt-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6a61ea6359adc21c688414ea9300a00ebe26ece8c3fba69d54eb8a9cf99f5ab
BLAKE2b-256 checksum
How to use checksums
3fb0c3df0a70e296fe063f6a47dcc0065fcfaebb7d752bf5893311a0010a4d42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.8 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

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