Replies: 4 comments 2 replies
-
Yes, it is possible to use a pandas DataFrame with the E2B Code Interpreter and LangGraph to execute queries. E2B's Data Analysis sandbox allows for safe code execution in a sandboxed environment, which is ideal for building tools such as code interpreters or advanced data analysis. You can run Python code, generate charts via matplotlib, install Python packages dynamically during runtime, and upload and download files. Specifically, you can install the pandas package and use it within the sandbox to manipulate and query DataFrames [1][2]. Here are the specific steps to integrate a pandas DataFrame with LangGraph in the E2B Code Interpreter:
By following these steps, you can integrate a pandas DataFrame with LangGraph in the E2B Code Interpreter and perform data analysis using natural language queries [1][2]. |
Beta Was this translation helpful? Give feedback.
-
@dosu. This is great example for langchain. Do you have similar example for "LangGraph"? Really interested in LangGraph. |
Beta Was this translation helpful? Give feedback.
-
@dosu I am looking for example of 'E2B Code Interpreter with LangGraph with pandas df' |
Beta Was this translation helpful? Give feedback.
-
@dosu...in above code, pasted the code below...how I upload my pandas dataframe instead of 'titanic dataset'. Please help.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Can I bring my own pandas df and ask questions? Is that possible?
System Info
Name: langchain
Version: 0.3.0
Beta Was this translation helpful? Give feedback.
All reactions