Skip to main content

A tiny ai to help you visualize data

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotgpt-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plotgpt-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file plotgpt-0.1.0.tar.gz.

File metadata

  • Download URL: plotgpt-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.8 Darwin/21.6.0

File hashes

Hashes for plotgpt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a55081caf0f4547ba261949ae88aeb1ccf22bf71dcd59a490dc7349dffbb0e1
MD5 3491f18ebbbd442d58a5ea9b248188c4
BLAKE2b-256 852339de3fe9f9f605b9fce378d41fdde278effa0163419715c08f47b8eeec5c

See more details on using hashes here.

File details

Details for the file plotgpt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: plotgpt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.8 Darwin/21.6.0

File hashes

Hashes for plotgpt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6a61ea6359adc21c688414ea9300a00ebe26ece8c3fba69d54eb8a9cf99f5ab
MD5 c01719a5e177669aefcd7e0a841b1906
BLAKE2b-256 3fb0c3df0a70e296fe063f6a47dcc0065fcfaebb7d752bf5893311a0010a4d42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page