File tree Expand file tree Collapse file tree 2 files changed +314
-237
lines changed Expand file tree Collapse file tree 2 files changed +314
-237
lines changed Original file line number Diff line number Diff line change 180
180
"id" : " successful-patch" ,
181
181
"metadata" : {},
182
182
"source" : [
183
- " ### Create"
183
+ " ### Create\n " ,
184
+ " * Create a single data row at a time"
184
185
]
185
186
},
186
187
{
201
202
}
202
203
],
203
204
"source" : [
204
- " #Add one at a time\n " ,
205
205
" dataset = client.create_dataset(name=\" testing-dataset\" )\n " ,
206
206
" dataset.create_data_row(row_data=\" https://picsum.photos/200/300\" )\n " ,
207
207
" \n " ,
211
211
" external_id=str(uuid.uuid4()))"
212
212
]
213
213
},
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
+ },
214
222
{
215
223
"cell_type" : " code" ,
216
224
"execution_count" : 10 ,
217
225
"id" : " round-perfume" ,
218
226
"metadata" : {},
219
227
"outputs" : [],
220
228
"source" : [
221
- " # Bulk create data_rows\n " ,
222
229
" task1 = dataset.create_data_rows([{\n " ,
223
230
" DataRow.row_data: \" https://picsum.photos/200/300\"\n " ,
224
231
" }, {\n " ,
382
389
],
383
390
"metadata" : {
384
391
"kernelspec" : {
385
- "display_name" : " Python 3" ,
392
+ "display_name" : " Python 3 (ipykernel) " ,
386
393
"language" : " python" ,
387
394
"name" : " python3"
388
395
},
You can’t perform that action at this time.
0 commit comments