Skip to main content

chat to visualization with LLM

Project description

📈 Chat2Plot - interactive text-to-visualization with LLM

Chat2plot is a project that provides visualizations based on chat instructions for given data.

Usage

import pandas as pd
from chat2plot import Chat2Plot

# 1. Set api-key beforehand
# os.environ["OPENAI_API_KEY"] = "..."

df = pd.read_csv(...)

# 2. Pass dataframe to draw
c2p = Chat2Plot(df)

# 3. Plot chart interactively
c2p("average target over countries")

c2p("change to horizontal-bar chart")

cp2("...")

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

chat2plot-0.0.1.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

chat2plot-0.0.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

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