Skip to content

The agent engineering platform.

DOC: Added notes in ipynb file to advise user to upgrade package langchain_openai. For issue: https://github.com/langchain-ai/langchain/issues/26616 (#27621)

hippopondbcff458ae3c0
diff --git a/docs/docs/integrations/tools/pandas.ipynb b/docs/docs/integrations/tools/pandas.ipynb
index 9ad8ec30df..2647140f54 100644
--- a/docs/docs/integrations/tools/pandas.ipynb
+++ b/docs/docs/integrations/tools/pandas.ipynb
@@ -9,7 +9,13 @@
"\n",
"This notebook shows how to use agents to interact with a `Pandas DataFrame`. It is mostly optimized for question answering.\n",
"\n",
- "**NOTE: this agent calls the `Python` agent under the hood, which executes LLM generated Python code - this can be bad if the LLM generated Python code is harmful. Use cautiously.**"
+ "**NOTE: this agent calls the `Python` agent under the hood, which executes LLM generated Python code - this can be bad if the LLM generated Python code is harmful. Use cautiously.**\n",
+ "\n",
+ "**NOTE: Since langchain migrated to v0.3 you should upgrade langchain_openai and langchain. This would avoid import errors.**\n",
+ "\n",
+ "\n",
+ "pip install --upgrade langchain_openai\n",
+ "pip install --upgrade langchain\n"
]
},
{
@@ -294,7 +300,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.1"
+ "version": "3.11.7"
}
},
"nbformat": 4,