Skip to content

Commit be741b2

Browse files
committed
edit
1 parent 1bf9394 commit be741b2

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

Examples/cdata/record_shapes.ipynb

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -376,36 +376,36 @@
376376
"<li>control_table_keys: [&#x27;group&#x27;]</li>\n",
377377
"<li>control_table:<br>\n",
378378
"<style type=\"text/css\">\n",
379-
"#T_faeec_row0_col0, #T_faeec_row1_col0 {\n",
379+
"#T_fbacb_row0_col0, #T_fbacb_row1_col0 {\n",
380380
" background-color: #7FFFD4;\n",
381381
"}\n",
382382
"</style>\n",
383-
"<table id=\"T_faeec\">\n",
383+
"<table id=\"T_fbacb\">\n",
384384
" <thead>\n",
385385
" <tr>\n",
386386
" <th class=\"blank level0\" >&nbsp;</th>\n",
387-
" <th id=\"T_faeec_level0_col0\" class=\"col_heading level0 col0\" >record structure</th>\n",
388-
" <th id=\"T_faeec_level0_col1\" class=\"col_heading level0 col1\" colspan=\"2\">value</th>\n",
387+
" <th id=\"T_fbacb_level0_col0\" class=\"col_heading level0 col0\" >record structure</th>\n",
388+
" <th id=\"T_fbacb_level0_col1\" class=\"col_heading level0 col1\" colspan=\"2\">value</th>\n",
389389
" </tr>\n",
390390
" <tr>\n",
391391
" <th class=\"blank level1\" >&nbsp;</th>\n",
392-
" <th id=\"T_faeec_level1_col0\" class=\"col_heading level1 col0\" >group</th>\n",
393-
" <th id=\"T_faeec_level1_col1\" class=\"col_heading level1 col1\" >y</th>\n",
394-
" <th id=\"T_faeec_level1_col2\" class=\"col_heading level1 col2\" >tail</th>\n",
392+
" <th id=\"T_fbacb_level1_col0\" class=\"col_heading level1 col0\" >group</th>\n",
393+
" <th id=\"T_fbacb_level1_col1\" class=\"col_heading level1 col1\" >y</th>\n",
394+
" <th id=\"T_fbacb_level1_col2\" class=\"col_heading level1 col2\" >tail</th>\n",
395395
" </tr>\n",
396396
" </thead>\n",
397397
" <tbody>\n",
398398
" <tr>\n",
399-
" <th id=\"T_faeec_level0_row0\" class=\"row_heading level0 row0\" >0</th>\n",
400-
" <td id=\"T_faeec_row0_col0\" class=\"data row0 col0\" >treatment</td>\n",
401-
" <td id=\"T_faeec_row0_col1\" class=\"data row0 col1\" >treatment</td>\n",
402-
" <td id=\"T_faeec_row0_col2\" class=\"data row0 col2\" >treatment_tail</td>\n",
399+
" <th id=\"T_fbacb_level0_row0\" class=\"row_heading level0 row0\" >0</th>\n",
400+
" <td id=\"T_fbacb_row0_col0\" class=\"data row0 col0\" >treatment</td>\n",
401+
" <td id=\"T_fbacb_row0_col1\" class=\"data row0 col1\" >treatment</td>\n",
402+
" <td id=\"T_fbacb_row0_col2\" class=\"data row0 col2\" >treatment_tail</td>\n",
403403
" </tr>\n",
404404
" <tr>\n",
405-
" <th id=\"T_faeec_level0_row1\" class=\"row_heading level0 row1\" >1</th>\n",
406-
" <td id=\"T_faeec_row1_col0\" class=\"data row1 col0\" >control</td>\n",
407-
" <td id=\"T_faeec_row1_col1\" class=\"data row1 col1\" >control</td>\n",
408-
" <td id=\"T_faeec_row1_col2\" class=\"data row1 col2\" >control_tail</td>\n",
405+
" <th id=\"T_fbacb_level0_row1\" class=\"row_heading level0 row1\" >1</th>\n",
406+
" <td id=\"T_fbacb_row1_col0\" class=\"data row1 col0\" >control</td>\n",
407+
" <td id=\"T_fbacb_row1_col1\" class=\"data row1 col1\" >control</td>\n",
408+
" <td id=\"T_fbacb_row1_col2\" class=\"data row1 col2\" >control_tail</td>\n",
409409
" </tr>\n",
410410
" </tbody>\n",
411411
"</table>\n",
@@ -457,77 +457,77 @@
457457
"text/html": [
458458
"RecordMap: transforming records of the form:<br>\n",
459459
"<style type=\"text/css\">\n",
460-
"#T_303a1_row0_col0 {\n",
460+
"#T_bbb97_row0_col0 {\n",
461461
" background-color: #FFE4C4;\n",
462462
"}\n",
463463
"</style>\n",
464-
"<table id=\"T_303a1\">\n",
464+
"<table id=\"T_bbb97\">\n",
465465
" <thead>\n",
466466
" <tr>\n",
467467
" <th class=\"blank level0\" >&nbsp;</th>\n",
468-
" <th id=\"T_303a1_level0_col0\" class=\"col_heading level0 col0\" >record id</th>\n",
469-
" <th id=\"T_303a1_level0_col1\" class=\"col_heading level0 col1\" colspan=\"4\">value</th>\n",
468+
" <th id=\"T_bbb97_level0_col0\" class=\"col_heading level0 col0\" >record id</th>\n",
469+
" <th id=\"T_bbb97_level0_col1\" class=\"col_heading level0 col1\" colspan=\"4\">value</th>\n",
470470
" </tr>\n",
471471
" <tr>\n",
472472
" <th class=\"blank level1\" >&nbsp;</th>\n",
473-
" <th id=\"T_303a1_level1_col0\" class=\"col_heading level1 col0\" >x</th>\n",
474-
" <th id=\"T_303a1_level1_col1\" class=\"col_heading level1 col1\" >treatment</th>\n",
475-
" <th id=\"T_303a1_level1_col2\" class=\"col_heading level1 col2\" >control</th>\n",
476-
" <th id=\"T_303a1_level1_col3\" class=\"col_heading level1 col3\" >treatment_tail</th>\n",
477-
" <th id=\"T_303a1_level1_col4\" class=\"col_heading level1 col4\" >control_tail</th>\n",
473+
" <th id=\"T_bbb97_level1_col0\" class=\"col_heading level1 col0\" >x</th>\n",
474+
" <th id=\"T_bbb97_level1_col1\" class=\"col_heading level1 col1\" >treatment</th>\n",
475+
" <th id=\"T_bbb97_level1_col2\" class=\"col_heading level1 col2\" >control</th>\n",
476+
" <th id=\"T_bbb97_level1_col3\" class=\"col_heading level1 col3\" >treatment_tail</th>\n",
477+
" <th id=\"T_bbb97_level1_col4\" class=\"col_heading level1 col4\" >control_tail</th>\n",
478478
" </tr>\n",
479479
" </thead>\n",
480480
" <tbody>\n",
481481
" <tr>\n",
482-
" <th id=\"T_303a1_level0_row0\" class=\"row_heading level0 row0\" >0</th>\n",
483-
" <td id=\"T_303a1_row0_col0\" class=\"data row0 col0\" >x record key</td>\n",
484-
" <td id=\"T_303a1_row0_col1\" class=\"data row0 col1\" >treatment value</td>\n",
485-
" <td id=\"T_303a1_row0_col2\" class=\"data row0 col2\" >control value</td>\n",
486-
" <td id=\"T_303a1_row0_col3\" class=\"data row0 col3\" >treatment_tail value</td>\n",
487-
" <td id=\"T_303a1_row0_col4\" class=\"data row0 col4\" >control_tail value</td>\n",
482+
" <th id=\"T_bbb97_level0_row0\" class=\"row_heading level0 row0\" >0</th>\n",
483+
" <td id=\"T_bbb97_row0_col0\" class=\"data row0 col0\" >x record key</td>\n",
484+
" <td id=\"T_bbb97_row0_col1\" class=\"data row0 col1\" >treatment value</td>\n",
485+
" <td id=\"T_bbb97_row0_col2\" class=\"data row0 col2\" >control value</td>\n",
486+
" <td id=\"T_bbb97_row0_col3\" class=\"data row0 col3\" >treatment_tail value</td>\n",
487+
" <td id=\"T_bbb97_row0_col4\" class=\"data row0 col4\" >control_tail value</td>\n",
488488
" </tr>\n",
489489
" </tbody>\n",
490490
"</table>\n",
491491
"<br>\n",
492492
"to records of the form:<br>\n",
493493
"<style type=\"text/css\">\n",
494-
"#T_861c2_row0_col0, #T_861c2_row1_col0 {\n",
494+
"#T_4e263_row0_col0, #T_4e263_row1_col0 {\n",
495495
" background-color: #FFE4C4;\n",
496496
"}\n",
497-
"#T_861c2_row0_col1, #T_861c2_row1_col1 {\n",
497+
"#T_4e263_row0_col1, #T_4e263_row1_col1 {\n",
498498
" background-color: #7FFFD4;\n",
499499
"}\n",
500500
"</style>\n",
501-
"<table id=\"T_861c2\">\n",
501+
"<table id=\"T_4e263\">\n",
502502
" <thead>\n",
503503
" <tr>\n",
504504
" <th class=\"blank level0\" >&nbsp;</th>\n",
505-
" <th id=\"T_861c2_level0_col0\" class=\"col_heading level0 col0\" >record id</th>\n",
506-
" <th id=\"T_861c2_level0_col1\" class=\"col_heading level0 col1\" >record structure</th>\n",
507-
" <th id=\"T_861c2_level0_col2\" class=\"col_heading level0 col2\" colspan=\"2\">value</th>\n",
505+
" <th id=\"T_4e263_level0_col0\" class=\"col_heading level0 col0\" >record id</th>\n",
506+
" <th id=\"T_4e263_level0_col1\" class=\"col_heading level0 col1\" >record structure</th>\n",
507+
" <th id=\"T_4e263_level0_col2\" class=\"col_heading level0 col2\" colspan=\"2\">value</th>\n",
508508
" </tr>\n",
509509
" <tr>\n",
510510
" <th class=\"blank level1\" >&nbsp;</th>\n",
511-
" <th id=\"T_861c2_level1_col0\" class=\"col_heading level1 col0\" >x</th>\n",
512-
" <th id=\"T_861c2_level1_col1\" class=\"col_heading level1 col1\" >group</th>\n",
513-
" <th id=\"T_861c2_level1_col2\" class=\"col_heading level1 col2\" >y</th>\n",
514-
" <th id=\"T_861c2_level1_col3\" class=\"col_heading level1 col3\" >tail</th>\n",
511+
" <th id=\"T_4e263_level1_col0\" class=\"col_heading level1 col0\" >x</th>\n",
512+
" <th id=\"T_4e263_level1_col1\" class=\"col_heading level1 col1\" >group</th>\n",
513+
" <th id=\"T_4e263_level1_col2\" class=\"col_heading level1 col2\" >y</th>\n",
514+
" <th id=\"T_4e263_level1_col3\" class=\"col_heading level1 col3\" >tail</th>\n",
515515
" </tr>\n",
516516
" </thead>\n",
517517
" <tbody>\n",
518518
" <tr>\n",
519-
" <th id=\"T_861c2_level0_row0\" class=\"row_heading level0 row0\" >0</th>\n",
520-
" <td id=\"T_861c2_row0_col0\" class=\"data row0 col0\" >x record key</td>\n",
521-
" <td id=\"T_861c2_row0_col1\" class=\"data row0 col1\" >control</td>\n",
522-
" <td id=\"T_861c2_row0_col2\" class=\"data row0 col2\" >control value</td>\n",
523-
" <td id=\"T_861c2_row0_col3\" class=\"data row0 col3\" >control_tail value</td>\n",
519+
" <th id=\"T_4e263_level0_row0\" class=\"row_heading level0 row0\" >0</th>\n",
520+
" <td id=\"T_4e263_row0_col0\" class=\"data row0 col0\" >x record key</td>\n",
521+
" <td id=\"T_4e263_row0_col1\" class=\"data row0 col1\" >control</td>\n",
522+
" <td id=\"T_4e263_row0_col2\" class=\"data row0 col2\" >control value</td>\n",
523+
" <td id=\"T_4e263_row0_col3\" class=\"data row0 col3\" >control_tail value</td>\n",
524524
" </tr>\n",
525525
" <tr>\n",
526-
" <th id=\"T_861c2_level0_row1\" class=\"row_heading level0 row1\" >1</th>\n",
527-
" <td id=\"T_861c2_row1_col0\" class=\"data row1 col0\" >x record key</td>\n",
528-
" <td id=\"T_861c2_row1_col1\" class=\"data row1 col1\" >treatment</td>\n",
529-
" <td id=\"T_861c2_row1_col2\" class=\"data row1 col2\" >treatment value</td>\n",
530-
" <td id=\"T_861c2_row1_col3\" class=\"data row1 col3\" >treatment_tail value</td>\n",
526+
" <th id=\"T_4e263_level0_row1\" class=\"row_heading level0 row1\" >1</th>\n",
527+
" <td id=\"T_4e263_row1_col0\" class=\"data row1 col0\" >x record key</td>\n",
528+
" <td id=\"T_4e263_row1_col1\" class=\"data row1 col1\" >treatment</td>\n",
529+
" <td id=\"T_4e263_row1_col2\" class=\"data row1 col2\" >treatment value</td>\n",
530+
" <td id=\"T_4e263_row1_col3\" class=\"data row1 col3\" >treatment_tail value</td>\n",
531531
" </tr>\n",
532532
" </tbody>\n",
533533
"</table>\n"
@@ -828,7 +828,7 @@
828828
"\n",
829829
"`.map_from_rows()` and `.map_to_rows()` map a general record structure to and from rows is the core of the `cdata` data \"pivoting\" system. The idea is data is in records, and sometimes those records span multiple rows. These are the fundemental operations\n",
830830
"\n",
831-
"`.map_from_keyed_column()` and `.map_to_keyed_column()` map between a general record structure and essentially [RDF Triples](https://en.wikipedia.org/wiki/Semantic_triple). This is direct support of legacy concepts such as `melt()` and `cast()` and other direct applications.\n",
831+
"`.map_from_keyed_column()` and `.map_to_keyed_column()` map between a general record structure and essentially [RDF Triples](https://en.wikipedia.org/wiki/Semantic_triple). This has a number of direct applications. It is also direct support of concepts such as `melt()` and `cast()`.\n",
832832
"\n",
833833
"About 90% of data reshaping tasks are actually simple maps between \"row records\" (records where all data is in a single row) and \"keyed columns\" (or triples, where all but one column are keys). Our example above was a bit more general. For fully general transforms one directly instantiates a `RecordMap` class, as it allows general input and output fixed record structure.\n"
834834
]

0 commit comments

Comments
 (0)