()
| 550 | |
| 551 | |
| 552 | def test_argmax_rows_02(): |
| 553 | input = T( |
| 554 | """ |
| 555 | | foo | bar |
| 556 | 0 | 1 | 5 |
| 557 | 1 | 2 | 6 |
| 558 | 2 | 3 | 8 |
| 559 | 3 | 2 | 8 |
| 560 | 4 | 3 | 8 |
| 561 | 5 | 3 | 5 |
| 562 | 6 | 5 | 2 |
| 563 | 7 | 6 | 1 |
| 564 | """ |
| 565 | ) |
| 566 | expected = T( |
| 567 | """ |
| 568 | | foo | bar |
| 569 | 0 | 1 | 5 |
| 570 | 2 | 3 | 8 |
| 571 | 3 | 2 | 8 |
| 572 | 6 | 5 | 2 |
| 573 | 7 | 6 | 1 |
| 574 | """ |
| 575 | ) |
| 576 | |
| 577 | assert_table_equality_wo_index( |
| 578 | argmax_rows(input, *[input.foo], what=input.bar), expected |
| 579 | ) |
| 580 | |
| 581 | |
| 582 | def test_table_from_rows_stream(): |
nothing calls this directly
no test coverage detected