Skip to content

Commit

Permalink
improved variable names and fixed wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdcsinaptik committed Jan 16, 2025
1 parent bbfa7da commit 4a3b377
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
11 changes: 3 additions & 8 deletions examples/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
"This notebook demonstrates how to get started with PandaAI and how to use it to analyze data through natural language."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -50,7 +45,7 @@
"metadata": {},
"outputs": [],
"source": [
"df = pai.read_csv(\"./data/heart.csv\")"
"file_df = pai.read_csv(\"./data/heart.csv\")"
]
},
{
Expand All @@ -68,7 +63,7 @@
"metadata": {},
"outputs": [],
"source": [
"response = df.chat(\"What is the correlation between age and cholesterol?\")\n",
"response = file_df.chat(\"What is the correlation between age and cholesterol?\")\n",
"print(response)"
]
},
Expand All @@ -91,7 +86,7 @@
"source": [
"dataset = pai.create(path=\"your-organization/heart\",\n",
" name=\"Heart\",\n",
" df = df,\n",
" df = file_df,\n",
" description=\"Heart Disease Dataset\")"
]
},
Expand Down
8 changes: 4 additions & 4 deletions examples/semantic_layer_csv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"outputs": [],
"source": [
"# Load the heart disease dataset\n",
"df = pai.read_csv(\"./dataheart.csv\")\n",
"file_df = pai.read_csv(\"./dataheart.csv\")\n",
"\n",
"# Display the first few rows\n",
"df.head()"
"file_df.head()"
]
},
{
Expand Down Expand Up @@ -80,10 +80,10 @@
"metadata": {},
"outputs": [],
"source": [
"df.save(path=\"organization/heart\",\n",
"dataset = pai.create(path=\"organization/heart\",\n",
" name=\"Heart\",\n",
" description=\"Heart Disease Dataset\",\n",
" df = df,\n",
" df = file_df,\n",
" columns=[\n",
" {\n",
" \"name\": \"Age\",\n",
Expand Down

0 comments on commit 4a3b377

Please sign in to comment.