Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
code formating fix for one cell
  • Loading branch information
Henry J Solberg committed Nov 7, 2023
commit 124b1460b84d31d052e5bf7c8477899befe7aabb
10 changes: 5 additions & 5 deletions notebooks/generative_ai/bq_dataframes_llm_kmeans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {
"id": "cOuSOQ5FDewD"
},
Expand Down Expand Up @@ -305,13 +305,13 @@
"# Using bigframes, with syntax identical to pandas,\n",
"# filter out the first and second groups\n",
"cluster_1_result = combined_clustered_result[\n",
" combined_clustered_result[\"CENTROID_ID\"] == 1][[\"consumer_complaint_narrative\"]\n",
"]\n",
" combined_clustered_result[\"CENTROID_ID\"] == 1\n",
"][[\"consumer_complaint_narrative\"]]\n",
"cluster_1_result_pandas = cluster_1_result.head(5).to_pandas()\n",
"\n",
"cluster_2_result = combined_clustered_result[\n",
" combined_clustered_result[\"CENTROID_ID\"] == 2][[\"consumer_complaint_narrative\"]\n",
"]\n",
" combined_clustered_result[\"CENTROID_ID\"] == 2\n",
"][[\"consumer_complaint_narrative\"]]\n",
"cluster_2_result_pandas = cluster_2_result.head(5).to_pandas()"
]
},
Expand Down