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 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 {
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 " ,
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 " ,
382389 ],
383390 "metadata" : {
384391 "kernelspec" : {
385- "display_name" : " Python 3" ,
392+ "display_name" : " Python 3 (ipykernel) " ,
386393 "language" : " python" ,
387394 "name" : " python3"
388395 },
You can’t perform that action at this time.
0 commit comments