Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 10 additions & 36 deletions 03-OutputParser/05-PandasDataFrameOutputParser.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
"- [Overview](#overview)\n",
"- [Environment Setup](#environment-setup)\n",
"- [Without model use](#without-model-use)\n",
" - [When input is `pd.DataFrame` or file](#when-input-is-pd.DataFrame-or-file)\n",
" - [Example of looking up a value for a column](#example-of-looking-up-a-value-for-a-column)\n",
" - [Example of a row lookup](#example-of-a-row-lookup)\n",
" - [Further Operations on Column](#further-operations-on-column)\n",
"- [With model](#with-model)\n",
"\n",
"### References\n",
Expand All @@ -70,14 +66,6 @@
"- You can checkout the [`langchain-opentutorial`](https://github.com/LangChain-OpenTutorial/langchain-opentutorial-pypi) for more details."
]
},
{
"cell_type": "markdown",
"id": "7216caf7",
"metadata": {},
"source": [
"## Without model use"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -86,7 +74,7 @@
"outputs": [],
"source": [
"%%capture --no-stderr\n",
"!pip install langchain-opentutorial"
"%pip install langchain-opentutorial"
]
},
{
Expand All @@ -109,8 +97,8 @@
}
],
"source": [
"!pip install pprintpp\n",
"!pip install typing"
"%pip install pprintpp\n",
"%pip install typing"
]
},
{
Expand Down Expand Up @@ -258,23 +246,9 @@
"id": "2f79fba3",
"metadata": {},
"source": [
"## Without model use"
]
},
{
"cell_type": "markdown",
"id": "1a0ba0b8",
"metadata": {},
"source": [
"### When input is `pd.DataFrame` or file."
]
},
{
"cell_type": "markdown",
"id": "38a9f23d",
"metadata": {},
"source": [
"The `format_parser_output` function is used to convert parser output to dictionary format and format the output."
"## Without model use\n",
"- The `format_parser_output` function is used to convert parser output to dictionary format and format the output.\n",
"- When input is `pd.DataFrame` or file. "
]
},
{
Expand Down Expand Up @@ -585,7 +559,7 @@
"id": "bd2699de",
"metadata": {},
"source": [
"### Example of looking up a value for a column."
"- Example of looking up a value for a column."
]
},
{
Expand Down Expand Up @@ -674,7 +648,7 @@
"id": "d4dd6636",
"metadata": {},
"source": [
"### Example of a row lookup."
"- Example of a row lookup."
]
},
{
Expand Down Expand Up @@ -727,7 +701,7 @@
"id": "a936bdcd",
"metadata": {},
"source": [
"### Further Operations on Column"
"- Further Operations on Column"
]
},
{
Expand Down Expand Up @@ -36131,4 +36105,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading
Loading