Skip to content

Commit 15c6ff1

Browse files
author
Matt Sokoloff
committed
notebook update
1 parent ed8351f commit 15c6ff1

File tree

2 files changed

+314
-237
lines changed

2 files changed

+314
-237
lines changed

examples/basics/data_rows.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@
180180
"id": "successful-patch",
181181
"metadata": {},
182182
"source": [
183-
"### Create"
183+
"### Create\n",
184+
"* Create a single data row at a time"
184185
]
185186
},
186187
{
@@ -201,7 +202,6 @@
201202
}
202203
],
203204
"source": [
204-
"#Add one at a time\n",
205205
"dataset = client.create_dataset(name=\"testing-dataset\")\n",
206206
"dataset.create_data_row(row_data=\"https://picsum.photos/200/300\")\n",
207207
"\n",
@@ -211,14 +211,21 @@
211211
" external_id=str(uuid.uuid4()))"
212212
]
213213
},
214+
{
215+
"cell_type": "markdown",
216+
"id": "helpful-lingerie",
217+
"metadata": {},
218+
"source": [
219+
"* Bulk create data rows (This is much faster than creating individual data rows)"
220+
]
221+
},
214222
{
215223
"cell_type": "code",
216224
"execution_count": 10,
217225
"id": "round-perfume",
218226
"metadata": {},
219227
"outputs": [],
220228
"source": [
221-
"# Bulk create data_rows\n",
222229
"task1 = dataset.create_data_rows([{\n",
223230
" DataRow.row_data: \"https://picsum.photos/200/300\"\n",
224231
"}, {\n",
@@ -382,7 +389,7 @@
382389
],
383390
"metadata": {
384391
"kernelspec": {
385-
"display_name": "Python 3",
392+
"display_name": "Python 3 (ipykernel)",
386393
"language": "python",
387394
"name": "python3"
388395
},

0 commit comments

Comments
 (0)