|
30 | 30 | "id": "cell-setup", |
31 | 31 | "metadata": { |
32 | 32 | "execution": { |
33 | | - "iopub.execute_input": "2026-02-19T18:33:13.922476Z", |
34 | | - "iopub.status.busy": "2026-02-19T18:33:13.922226Z", |
35 | | - "iopub.status.idle": "2026-02-19T18:33:14.264072Z", |
36 | | - "shell.execute_reply": "2026-02-19T18:33:14.263675Z" |
| 33 | + "iopub.execute_input": "2026-02-19T20:41:15.942708Z", |
| 34 | + "iopub.status.busy": "2026-02-19T20:41:15.942598Z", |
| 35 | + "iopub.status.idle": "2026-02-19T20:41:16.282481Z", |
| 36 | + "shell.execute_reply": "2026-02-19T20:41:16.282148Z" |
37 | 37 | } |
38 | 38 | }, |
39 | 39 | "outputs": [ |
40 | 40 | { |
41 | 41 | "name": "stdout", |
42 | 42 | "output_type": "stream", |
43 | 43 | "text": [ |
44 | | - "[2026-02-19 18:33:14] DataJoint 2.1.1 connected to postgres@postgres:5432\n" |
| 44 | + "[2026-02-19 20:41:16] DataJoint 2.1.1 connected to postgres@postgres:5432\n" |
45 | 45 | ] |
46 | 46 | } |
47 | 47 | ], |
48 | 48 | "source": [ |
49 | 49 | "import datajoint as dj\n", |
50 | 50 | "import numpy as np\n", |
| 51 | + "from datetime import date\n", |
51 | 52 | "from faker import Faker\n", |
52 | 53 | "\n", |
53 | 54 | "dj.config['display.limit'] = 8\n", |
|
74 | 75 | "id": "cell-language", |
75 | 76 | "metadata": { |
76 | 77 | "execution": { |
77 | | - "iopub.execute_input": "2026-02-19T18:33:14.265507Z", |
78 | | - "iopub.status.busy": "2026-02-19T18:33:14.265301Z", |
79 | | - "iopub.status.idle": "2026-02-19T18:33:14.288274Z", |
80 | | - "shell.execute_reply": "2026-02-19T18:33:14.287897Z" |
| 78 | + "iopub.execute_input": "2026-02-19T20:41:16.283596Z", |
| 79 | + "iopub.status.busy": "2026-02-19T20:41:16.283444Z", |
| 80 | + "iopub.status.idle": "2026-02-19T20:41:16.299667Z", |
| 81 | + "shell.execute_reply": "2026-02-19T20:41:16.299359Z" |
81 | 82 | } |
82 | 83 | }, |
83 | 84 | "outputs": [], |
|
112 | 113 | "id": "cell-cefr", |
113 | 114 | "metadata": { |
114 | 115 | "execution": { |
115 | | - "iopub.execute_input": "2026-02-19T18:33:14.289602Z", |
116 | | - "iopub.status.busy": "2026-02-19T18:33:14.289476Z", |
117 | | - "iopub.status.idle": "2026-02-19T18:33:14.305275Z", |
118 | | - "shell.execute_reply": "2026-02-19T18:33:14.304815Z" |
| 116 | + "iopub.execute_input": "2026-02-19T20:41:16.300657Z", |
| 117 | + "iopub.status.busy": "2026-02-19T20:41:16.300576Z", |
| 118 | + "iopub.status.idle": "2026-02-19T20:41:16.312296Z", |
| 119 | + "shell.execute_reply": "2026-02-19T20:41:16.311994Z" |
119 | 120 | } |
120 | 121 | }, |
121 | 122 | "outputs": [], |
|
152 | 153 | "id": "cell-show-lookups", |
153 | 154 | "metadata": { |
154 | 155 | "execution": { |
155 | | - "iopub.execute_input": "2026-02-19T18:33:14.306324Z", |
156 | | - "iopub.status.busy": "2026-02-19T18:33:14.306221Z", |
157 | | - "iopub.status.idle": "2026-02-19T18:33:14.310036Z", |
158 | | - "shell.execute_reply": "2026-02-19T18:33:14.309706Z" |
| 156 | + "iopub.execute_input": "2026-02-19T20:41:16.313157Z", |
| 157 | + "iopub.status.busy": "2026-02-19T20:41:16.313083Z", |
| 158 | + "iopub.status.idle": "2026-02-19T20:41:16.316382Z", |
| 159 | + "shell.execute_reply": "2026-02-19T20:41:16.316138Z" |
159 | 160 | } |
160 | 161 | }, |
161 | 162 | "outputs": [ |
|
218 | 219 | "id": "cell-person", |
219 | 220 | "metadata": { |
220 | 221 | "execution": { |
221 | | - "iopub.execute_input": "2026-02-19T18:33:14.311079Z", |
222 | | - "iopub.status.busy": "2026-02-19T18:33:14.310979Z", |
223 | | - "iopub.status.idle": "2026-02-19T18:33:14.318020Z", |
224 | | - "shell.execute_reply": "2026-02-19T18:33:14.317677Z" |
| 222 | + "iopub.execute_input": "2026-02-19T20:41:16.317206Z", |
| 223 | + "iopub.status.busy": "2026-02-19T20:41:16.317125Z", |
| 224 | + "iopub.status.idle": "2026-02-19T20:41:16.323546Z", |
| 225 | + "shell.execute_reply": "2026-02-19T20:41:16.323373Z" |
225 | 226 | } |
226 | 227 | }, |
227 | 228 | "outputs": [], |
|
243 | 244 | "id": "cell-proficiency", |
244 | 245 | "metadata": { |
245 | 246 | "execution": { |
246 | | - "iopub.execute_input": "2026-02-19T18:33:14.319124Z", |
247 | | - "iopub.status.busy": "2026-02-19T18:33:14.319033Z", |
248 | | - "iopub.status.idle": "2026-02-19T18:33:14.329936Z", |
249 | | - "shell.execute_reply": "2026-02-19T18:33:14.329611Z" |
| 247 | + "iopub.execute_input": "2026-02-19T20:41:16.324379Z", |
| 248 | + "iopub.status.busy": "2026-02-19T20:41:16.324304Z", |
| 249 | + "iopub.status.idle": "2026-02-19T20:41:16.332510Z", |
| 250 | + "shell.execute_reply": "2026-02-19T20:41:16.332291Z" |
250 | 251 | } |
251 | 252 | }, |
252 | 253 | "outputs": [], |
|
268 | 269 | "id": "cell-diagram", |
269 | 270 | "metadata": { |
270 | 271 | "execution": { |
271 | | - "iopub.execute_input": "2026-02-19T18:33:14.331049Z", |
272 | | - "iopub.status.busy": "2026-02-19T18:33:14.330945Z", |
273 | | - "iopub.status.idle": "2026-02-19T18:33:14.542104Z", |
274 | | - "shell.execute_reply": "2026-02-19T18:33:14.541744Z" |
| 272 | + "iopub.execute_input": "2026-02-19T20:41:16.333252Z", |
| 273 | + "iopub.status.busy": "2026-02-19T20:41:16.333184Z", |
| 274 | + "iopub.status.idle": "2026-02-19T20:41:16.589367Z", |
| 275 | + "shell.execute_reply": "2026-02-19T20:41:16.589021Z" |
275 | 276 | } |
276 | 277 | }, |
277 | 278 | "outputs": [ |
|
358 | 359 | "</svg>" |
359 | 360 | ], |
360 | 361 | "text/plain": [ |
361 | | - "<datajoint.diagram.Diagram at 0xffff7742b4a0>" |
| 362 | + "<datajoint.diagram.Diagram at 0xffff644f34a0>" |
362 | 363 | ] |
363 | 364 | }, |
364 | 365 | "execution_count": 7, |
|
396 | 397 | "id": "cell-populate-person", |
397 | 398 | "metadata": { |
398 | 399 | "execution": { |
399 | | - "iopub.execute_input": "2026-02-19T18:33:14.543080Z", |
400 | | - "iopub.status.busy": "2026-02-19T18:33:14.542992Z", |
401 | | - "iopub.status.idle": "2026-02-19T18:33:14.573706Z", |
402 | | - "shell.execute_reply": "2026-02-19T18:33:14.573483Z" |
| 400 | + "iopub.execute_input": "2026-02-19T20:41:16.590230Z", |
| 401 | + "iopub.status.busy": "2026-02-19T20:41:16.590156Z", |
| 402 | + "iopub.status.idle": "2026-02-19T20:41:16.621462Z", |
| 403 | + "shell.execute_reply": "2026-02-19T20:41:16.621218Z" |
403 | 404 | } |
404 | 405 | }, |
405 | 406 | "outputs": [ |
|
477 | 478 | " <thead> <tr> <th> <span id=\"primary\" title=\"unique identifier\">person_id</span></th><th><span id=\"nonprimary\" title=\"\">name</span></th><th><span id=\"nonprimary\" title=\"\">date_of_birth</span> </th> </tr> </thead>\n", |
478 | 479 | " <tbody> <tr> <td>0</td>\n", |
479 | 480 | "<td>Allison Hill</td>\n", |
480 | | - "<td>1966-12-18</td></tr><tr><td>1</td>\n", |
| 481 | + "<td>1967-08-10</td></tr><tr><td>1</td>\n", |
481 | 482 | "<td>Megan Mcclain</td>\n", |
482 | | - "<td>1959-09-28</td></tr><tr><td>2</td>\n", |
| 483 | + "<td>1960-07-09</td></tr><tr><td>2</td>\n", |
483 | 484 | "<td>Allen Robinson</td>\n", |
484 | | - "<td>1981-12-01</td></tr><tr><td>3</td>\n", |
| 485 | + "<td>1982-04-12</td></tr><tr><td>3</td>\n", |
485 | 486 | "<td>Cristian Santos</td>\n", |
486 | | - "<td>1984-01-06</td></tr><tr><td>4</td>\n", |
| 487 | + "<td>1984-05-03</td></tr><tr><td>4</td>\n", |
487 | 488 | "<td>Kevin Pacheco</td>\n", |
488 | | - "<td>1955-06-24</td></tr><tr><td>5</td>\n", |
| 489 | + "<td>1956-05-03</td></tr><tr><td>5</td>\n", |
489 | 490 | "<td>Melissa Peterson</td>\n", |
490 | | - "<td>1963-05-17</td></tr><tr><td>6</td>\n", |
| 491 | + "<td>1964-02-01</td></tr><tr><td>6</td>\n", |
491 | 492 | "<td>Gabrielle Davis</td>\n", |
492 | | - "<td>1960-04-05</td></tr><tr><td>7</td>\n", |
| 493 | + "<td>1961-01-10</td></tr><tr><td>7</td>\n", |
493 | 494 | "<td>Lindsey Roman</td>\n", |
494 | | - "<td>1993-10-23</td> </tr> </tbody>\n", |
| 495 | + "<td>1993-12-11</td> </tr> </tbody>\n", |
495 | 496 | " </table>\n", |
496 | 497 | " <p>...</p>\n", |
497 | 498 | " <p>Total: 200</p></div>\n", |
|
500 | 501 | "text/plain": [ |
501 | 502 | "*person_id name date_of_birth \n", |
502 | 503 | "+-----------+ +------------+ +------------+\n", |
503 | | - "0 Allison Hill 1966-12-18 \n", |
504 | | - "1 Megan Mcclain 1959-09-28 \n", |
505 | | - "2 Allen Robinson 1981-12-01 \n", |
506 | | - "3 Cristian Santo 1984-01-06 \n", |
507 | | - "4 Kevin Pacheco 1955-06-24 \n", |
508 | | - "5 Melissa Peters 1963-05-17 \n", |
509 | | - "6 Gabrielle Davi 1960-04-05 \n", |
510 | | - "7 Lindsey Roman 1993-10-23 \n", |
| 504 | + "0 Allison Hill 1967-08-10 \n", |
| 505 | + "1 Megan Mcclain 1960-07-09 \n", |
| 506 | + "2 Allen Robinson 1982-04-12 \n", |
| 507 | + "3 Cristian Santo 1984-05-03 \n", |
| 508 | + "4 Kevin Pacheco 1956-05-03 \n", |
| 509 | + "5 Melissa Peters 1964-02-01 \n", |
| 510 | + "6 Gabrielle Davi 1961-01-10 \n", |
| 511 | + "7 Lindsey Roman 1993-12-11 \n", |
511 | 512 | " ...\n", |
512 | 513 | " (Total: 200)" |
513 | 514 | ] |
|
528 | 529 | " {\n", |
529 | 530 | " 'person_id': i,\n", |
530 | 531 | " 'name': fake.name(),\n", |
531 | | - " 'date_of_birth': fake.date_of_birth(\n", |
532 | | - " minimum_age=18, maximum_age=70)\n", |
| 532 | + " 'date_of_birth': fake.date_between(\n", |
| 533 | + " start_date=date(1956, 1, 1), end_date=date(2008, 1, 1))\n", |
533 | 534 | " }\n", |
534 | 535 | " for i in range(n_people)\n", |
535 | 536 | ")\n", |
|
544 | 545 | "id": "cell-populate-prof", |
545 | 546 | "metadata": { |
546 | 547 | "execution": { |
547 | | - "iopub.execute_input": "2026-02-19T18:33:14.574639Z", |
548 | | - "iopub.status.busy": "2026-02-19T18:33:14.574552Z", |
549 | | - "iopub.status.idle": "2026-02-19T18:33:14.624904Z", |
550 | | - "shell.execute_reply": "2026-02-19T18:33:14.624663Z" |
| 548 | + "iopub.execute_input": "2026-02-19T20:41:16.622288Z", |
| 549 | + "iopub.status.busy": "2026-02-19T20:41:16.622210Z", |
| 550 | + "iopub.status.idle": "2026-02-19T20:41:16.668197Z", |
| 551 | + "shell.execute_reply": "2026-02-19T20:41:16.667974Z" |
551 | 552 | } |
552 | 553 | }, |
553 | 554 | "outputs": [ |
|
708 | 709 | "id": "cell-q1", |
709 | 710 | "metadata": { |
710 | 711 | "execution": { |
711 | | - "iopub.execute_input": "2026-02-19T18:33:14.625759Z", |
712 | | - "iopub.status.busy": "2026-02-19T18:33:14.625672Z", |
713 | | - "iopub.status.idle": "2026-02-19T18:33:14.631046Z", |
714 | | - "shell.execute_reply": "2026-02-19T18:33:14.630749Z" |
| 712 | + "iopub.execute_input": "2026-02-19T20:41:16.669057Z", |
| 713 | + "iopub.status.busy": "2026-02-19T20:41:16.668977Z", |
| 714 | + "iopub.status.idle": "2026-02-19T20:41:16.673381Z", |
| 715 | + "shell.execute_reply": "2026-02-19T20:41:16.673140Z" |
715 | 716 | } |
716 | 717 | }, |
717 | 718 | "outputs": [ |
|
837 | 838 | "id": "cell-q2", |
838 | 839 | "metadata": { |
839 | 840 | "execution": { |
840 | | - "iopub.execute_input": "2026-02-19T18:33:14.631894Z", |
841 | | - "iopub.status.busy": "2026-02-19T18:33:14.631810Z", |
842 | | - "iopub.status.idle": "2026-02-19T18:33:14.637059Z", |
843 | | - "shell.execute_reply": "2026-02-19T18:33:14.636830Z" |
| 841 | + "iopub.execute_input": "2026-02-19T20:41:16.674143Z", |
| 842 | + "iopub.status.busy": "2026-02-19T20:41:16.674066Z", |
| 843 | + "iopub.status.idle": "2026-02-19T20:41:16.678475Z", |
| 844 | + "shell.execute_reply": "2026-02-19T20:41:16.678232Z" |
844 | 845 | } |
845 | 846 | }, |
846 | 847 | "outputs": [ |
|
962 | 963 | "id": "cell-q3", |
963 | 964 | "metadata": { |
964 | 965 | "execution": { |
965 | | - "iopub.execute_input": "2026-02-19T18:33:14.637864Z", |
966 | | - "iopub.status.busy": "2026-02-19T18:33:14.637797Z", |
967 | | - "iopub.status.idle": "2026-02-19T18:33:14.642102Z", |
968 | | - "shell.execute_reply": "2026-02-19T18:33:14.641635Z" |
| 966 | + "iopub.execute_input": "2026-02-19T20:41:16.679190Z", |
| 967 | + "iopub.status.busy": "2026-02-19T20:41:16.679119Z", |
| 968 | + "iopub.status.idle": "2026-02-19T20:41:16.683230Z", |
| 969 | + "shell.execute_reply": "2026-02-19T20:41:16.682984Z" |
969 | 970 | } |
970 | 971 | }, |
971 | 972 | "outputs": [ |
|
1099 | 1100 | "id": "cell-q4", |
1100 | 1101 | "metadata": { |
1101 | 1102 | "execution": { |
1102 | | - "iopub.execute_input": "2026-02-19T18:33:14.643096Z", |
1103 | | - "iopub.status.busy": "2026-02-19T18:33:14.642990Z", |
1104 | | - "iopub.status.idle": "2026-02-19T18:33:14.650066Z", |
1105 | | - "shell.execute_reply": "2026-02-19T18:33:14.649813Z" |
| 1103 | + "iopub.execute_input": "2026-02-19T20:41:16.683981Z", |
| 1104 | + "iopub.status.busy": "2026-02-19T20:41:16.683898Z", |
| 1105 | + "iopub.status.idle": "2026-02-19T20:41:16.689461Z", |
| 1106 | + "shell.execute_reply": "2026-02-19T20:41:16.689174Z" |
1106 | 1107 | } |
1107 | 1108 | }, |
1108 | 1109 | "outputs": [ |
|
1247 | 1248 | "id": "cell-q5", |
1248 | 1249 | "metadata": { |
1249 | 1250 | "execution": { |
1250 | | - "iopub.execute_input": "2026-02-19T18:33:14.650901Z", |
1251 | | - "iopub.status.busy": "2026-02-19T18:33:14.650824Z", |
1252 | | - "iopub.status.idle": "2026-02-19T18:33:14.654952Z", |
1253 | | - "shell.execute_reply": "2026-02-19T18:33:14.654700Z" |
| 1251 | + "iopub.execute_input": "2026-02-19T20:41:16.690156Z", |
| 1252 | + "iopub.status.busy": "2026-02-19T20:41:16.690084Z", |
| 1253 | + "iopub.status.idle": "2026-02-19T20:41:16.694550Z", |
| 1254 | + "shell.execute_reply": "2026-02-19T20:41:16.694297Z" |
1254 | 1255 | } |
1255 | 1256 | }, |
1256 | 1257 | "outputs": [ |
|
1368 | 1369 | "id": "cell-q6", |
1369 | 1370 | "metadata": { |
1370 | 1371 | "execution": { |
1371 | | - "iopub.execute_input": "2026-02-19T18:33:14.655690Z", |
1372 | | - "iopub.status.busy": "2026-02-19T18:33:14.655610Z", |
1373 | | - "iopub.status.idle": "2026-02-19T18:33:14.660062Z", |
1374 | | - "shell.execute_reply": "2026-02-19T18:33:14.659784Z" |
| 1372 | + "iopub.execute_input": "2026-02-19T20:41:16.695308Z", |
| 1373 | + "iopub.status.busy": "2026-02-19T20:41:16.695231Z", |
| 1374 | + "iopub.status.idle": "2026-02-19T20:41:16.699492Z", |
| 1375 | + "shell.execute_reply": "2026-02-19T20:41:16.699234Z" |
1375 | 1376 | } |
1376 | 1377 | }, |
1377 | 1378 | "outputs": [ |
|
1498 | 1499 | "id": "cell-q7", |
1499 | 1500 | "metadata": { |
1500 | 1501 | "execution": { |
1501 | | - "iopub.execute_input": "2026-02-19T18:33:14.660959Z", |
1502 | | - "iopub.status.busy": "2026-02-19T18:33:14.660887Z", |
1503 | | - "iopub.status.idle": "2026-02-19T18:33:14.664948Z", |
1504 | | - "shell.execute_reply": "2026-02-19T18:33:14.664715Z" |
| 1502 | + "iopub.execute_input": "2026-02-19T20:41:16.700166Z", |
| 1503 | + "iopub.status.busy": "2026-02-19T20:41:16.700101Z", |
| 1504 | + "iopub.status.idle": "2026-02-19T20:41:16.703403Z", |
| 1505 | + "shell.execute_reply": "2026-02-19T20:41:16.703164Z" |
1505 | 1506 | } |
1506 | 1507 | }, |
1507 | 1508 | "outputs": [ |
|
1629 | 1630 | "id": "cell-q8", |
1630 | 1631 | "metadata": { |
1631 | 1632 | "execution": { |
1632 | | - "iopub.execute_input": "2026-02-19T18:33:14.665691Z", |
1633 | | - "iopub.status.busy": "2026-02-19T18:33:14.665627Z", |
1634 | | - "iopub.status.idle": "2026-02-19T18:33:14.669960Z", |
1635 | | - "shell.execute_reply": "2026-02-19T18:33:14.669738Z" |
| 1633 | + "iopub.execute_input": "2026-02-19T20:41:16.704109Z", |
| 1634 | + "iopub.status.busy": "2026-02-19T20:41:16.704044Z", |
| 1635 | + "iopub.status.idle": "2026-02-19T20:41:16.708560Z", |
| 1636 | + "shell.execute_reply": "2026-02-19T20:41:16.708285Z" |
1636 | 1637 | } |
1637 | 1638 | }, |
1638 | 1639 | "outputs": [ |
|
1758 | 1759 | "id": "cell-q9", |
1759 | 1760 | "metadata": { |
1760 | 1761 | "execution": { |
1761 | | - "iopub.execute_input": "2026-02-19T18:33:14.670746Z", |
1762 | | - "iopub.status.busy": "2026-02-19T18:33:14.670666Z", |
1763 | | - "iopub.status.idle": "2026-02-19T18:33:14.676049Z", |
1764 | | - "shell.execute_reply": "2026-02-19T18:33:14.675826Z" |
| 1762 | + "iopub.execute_input": "2026-02-19T20:41:16.709319Z", |
| 1763 | + "iopub.status.busy": "2026-02-19T20:41:16.709246Z", |
| 1764 | + "iopub.status.idle": "2026-02-19T20:41:16.714415Z", |
| 1765 | + "shell.execute_reply": "2026-02-19T20:41:16.714166Z" |
1765 | 1766 | } |
1766 | 1767 | }, |
1767 | 1768 | "outputs": [ |
|
1925 | 1926 | "id": "cell-cleanup", |
1926 | 1927 | "metadata": { |
1927 | 1928 | "execution": { |
1928 | | - "iopub.execute_input": "2026-02-19T18:33:14.676973Z", |
1929 | | - "iopub.status.busy": "2026-02-19T18:33:14.676892Z", |
1930 | | - "iopub.status.idle": "2026-02-19T18:33:14.680976Z", |
1931 | | - "shell.execute_reply": "2026-02-19T18:33:14.680719Z" |
| 1929 | + "iopub.execute_input": "2026-02-19T20:41:16.715158Z", |
| 1930 | + "iopub.status.busy": "2026-02-19T20:41:16.715086Z", |
| 1931 | + "iopub.status.idle": "2026-02-19T20:41:16.718367Z", |
| 1932 | + "shell.execute_reply": "2026-02-19T20:41:16.718155Z" |
1932 | 1933 | } |
1933 | 1934 | }, |
1934 | 1935 | "outputs": [], |
|
0 commit comments