()
| 466 | |
| 467 | |
| 468 | def test_argmin_rows_01(): |
| 469 | input = T( |
| 470 | """ |
| 471 | | foo | bar |
| 472 | 0 | 1 | 5 |
| 473 | 1 | 2 | 6 |
| 474 | 2 | 3 | 8 |
| 475 | 3 | 2 | 8 |
| 476 | 4 | 3 | 8 |
| 477 | 5 | 3 | 5 |
| 478 | 6 | 5 | 2 |
| 479 | 7 | 6 | 1 |
| 480 | """ |
| 481 | ) |
| 482 | expected = T( |
| 483 | """ |
| 484 | | foo | bar |
| 485 | 0 | 1 | 5 |
| 486 | 1 | 2 | 6 |
| 487 | 5 | 3 | 5 |
| 488 | 6 | 5 | 2 |
| 489 | 7 | 6 | 1 |
| 490 | """ |
| 491 | ) |
| 492 | assert_table_equality(argmin_rows(input, *[input.foo], what=input.bar), expected) |
| 493 | |
| 494 | |
| 495 | def test_argmin_rows_02(): |
nothing calls this directly
no test coverage detected