{"repo":"mljar/plotai","free":true,"listed":false,"github":"https://github.com/mljar/plotai","clone":"git clone https://github.com/mljar/plotai.git","description":"PlotAI - Your Ultimate Plotting Assistant! 📊🤖 Use ChatGPT-3.5 to create plots in Python and Matplotlib directly in your Python script or notebook.","language":"Python","stars":360,"topics":["charts","chatgpt","data-science","llm","matplotlib","plots","python","visualization"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"🎨🤖 Create Python plots in matplotlib with LLM 🎨🤖 🚀 Get Started &nbsp;&nbsp;•&nbsp;&nbsp; 🤝 Issues &nbsp;&nbsp;•&nbsp;&nbsp; 🐦 Twitter &nbsp;&nbsp;•&nbsp;&nbsp; 👩‍💼 LinkedIn Important securitiy risk The PlotAI executes code from LLM. It is using exec() function for this. I commented out the exec() function in file plotai/code/executor.py . If you understand the security risks you need to remove comment to use the package. PlotAI 🎨🤖 The easiest way to create plots in Python and Matplotlib. The plotai is using LLM to generate code and plots. The idea: 1. User provides input DataFrame and prompt. 2. The PlotAI constructs a prompt for LLM, which contains the first 5 rows of DataFrame and the user's prompt and asks for Python code as output. 3. Returned Python code is executed, and the plot is displayed. https://github.com/mljar/plotai/assets/6959032/cb80bc35-e534-466d-aa1d-ce240d35f624 The simplest possible API for plotting: The PlotAI class has only one method, make() . It works in Python scripts and in notebooks (Jupyter, Colab, VS Code). 🚀 Get started Install plotai package: Create .env file with the OpenAI API key: You can also pass the OpenAI API key in Python: Import plotai and make plots: By default the library will use ' gpt-3.5-turbo '. You can use different OpenAI models: More examples Analyze the GPD dataset https://github.com/mljar/plotai/assets/6959032/e62b1a26-7c91-40e4-9d2d-1a600d8dd7ba Analyze the Iris dataset 👩‍💼🐦 Connect with Us on LinkedIn & Twitt","default_branch":null,"files":null,"tree":[],"storefront":"/r/mljar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mljar/plotai/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}