Missing Support of Pandas DateFrame saved in MemorySaver Checkpointer? #2832
Unanswered
Pipasgonzalez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to implement an agent that automatically plots retrieved SQL data and it works good so far (without a checkpointer). However, as soon as I compile the graph with the MemorySaver() checkpointer I get the same error each time after the agent reaches the END node.
Here is the graph:
class WorkFlowManager:
def init(self):
self.sql_agent = SQLAgent()
self.plotter = CustomPlotly()
#self.memory = MemorySaver()
raise TypeError(f"Object of type {obj.class.name} is not serializable")
TypeError: Object of type DataFrame is not serializable
I think it is weird that it lets me save in state a plotly graph but not a pandas df? It's not even that big, like 50 rows of data. How can I fixe this, so that the checkpointer does not throw an error when trying to save the DF (as a df) to the state
Beta Was this translation helpful? Give feedback.
All reactions