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
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
chat2plot-0.0.1.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for chat2plot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2422377a71fec108ebf0b3a6c634a9463af3c60cd19eed4df97bc48c950614ba |
|
MD5 | db4e76c238ed4e24318d10c5fcbf76d9 |
|
BLAKE2b-256 | 6d90036189d25f5b8fc57fb54932d8f1ab27f223ab1262b7c365b01284a44483 |