|
376 | 376 | "<li>control_table_keys: ['group']</li>\n", |
377 | 377 | "<li>control_table:<br>\n", |
378 | 378 | "<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", |
380 | 380 | " background-color: #7FFFD4;\n", |
381 | 381 | "}\n", |
382 | 382 | "</style>\n", |
383 | | - "<table id=\"T_faeec\">\n", |
| 383 | + "<table id=\"T_fbacb\">\n", |
384 | 384 | " <thead>\n", |
385 | 385 | " <tr>\n", |
386 | 386 | " <th class=\"blank level0\" > </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", |
389 | 389 | " </tr>\n", |
390 | 390 | " <tr>\n", |
391 | 391 | " <th class=\"blank level1\" > </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", |
395 | 395 | " </tr>\n", |
396 | 396 | " </thead>\n", |
397 | 397 | " <tbody>\n", |
398 | 398 | " <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", |
403 | 403 | " </tr>\n", |
404 | 404 | " <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", |
409 | 409 | " </tr>\n", |
410 | 410 | " </tbody>\n", |
411 | 411 | "</table>\n", |
|
457 | 457 | "text/html": [ |
458 | 458 | "RecordMap: transforming records of the form:<br>\n", |
459 | 459 | "<style type=\"text/css\">\n", |
460 | | - "#T_303a1_row0_col0 {\n", |
| 460 | + "#T_bbb97_row0_col0 {\n", |
461 | 461 | " background-color: #FFE4C4;\n", |
462 | 462 | "}\n", |
463 | 463 | "</style>\n", |
464 | | - "<table id=\"T_303a1\">\n", |
| 464 | + "<table id=\"T_bbb97\">\n", |
465 | 465 | " <thead>\n", |
466 | 466 | " <tr>\n", |
467 | 467 | " <th class=\"blank level0\" > </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", |
470 | 470 | " </tr>\n", |
471 | 471 | " <tr>\n", |
472 | 472 | " <th class=\"blank level1\" > </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", |
478 | 478 | " </tr>\n", |
479 | 479 | " </thead>\n", |
480 | 480 | " <tbody>\n", |
481 | 481 | " <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", |
488 | 488 | " </tr>\n", |
489 | 489 | " </tbody>\n", |
490 | 490 | "</table>\n", |
491 | 491 | "<br>\n", |
492 | 492 | "to records of the form:<br>\n", |
493 | 493 | "<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", |
495 | 495 | " background-color: #FFE4C4;\n", |
496 | 496 | "}\n", |
497 | | - "#T_861c2_row0_col1, #T_861c2_row1_col1 {\n", |
| 497 | + "#T_4e263_row0_col1, #T_4e263_row1_col1 {\n", |
498 | 498 | " background-color: #7FFFD4;\n", |
499 | 499 | "}\n", |
500 | 500 | "</style>\n", |
501 | | - "<table id=\"T_861c2\">\n", |
| 501 | + "<table id=\"T_4e263\">\n", |
502 | 502 | " <thead>\n", |
503 | 503 | " <tr>\n", |
504 | 504 | " <th class=\"blank level0\" > </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", |
508 | 508 | " </tr>\n", |
509 | 509 | " <tr>\n", |
510 | 510 | " <th class=\"blank level1\" > </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", |
515 | 515 | " </tr>\n", |
516 | 516 | " </thead>\n", |
517 | 517 | " <tbody>\n", |
518 | 518 | " <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", |
524 | 524 | " </tr>\n", |
525 | 525 | " <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", |
531 | 531 | " </tr>\n", |
532 | 532 | " </tbody>\n", |
533 | 533 | "</table>\n" |
|
828 | 828 | "\n", |
829 | 829 | "`.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", |
830 | 830 | "\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", |
832 | 832 | "\n", |
833 | 833 | "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" |
834 | 834 | ] |
|
0 commit comments