0

I am pretty new in LangChain, playing with Langchain's CSV Agent. It is giving me the desired result. Look at the attached image

enter image description here

Now, I want to use the code outside of Google Colab. However, in the python script, it is giving me the text, but as expected, no figure. How can I extract the figure from Langchain's CSV Agent if any? I need your guidance.

LuckyCoder
  • 520
  • 8
  • 27

2 Answers2

0

You could just screen shot the chart for external usage?

Or are you looking to be able to edit the look and feel?

0

try to import pyplot and show the plot after the call to ask:

import matplotlib.pyplot as plt
...
ask("Display agent's performancebased on number of bill minutes, sort the data in desc and create a bar graph")
plt.show()