MCPcopy
hub / github.com/pathwaycom/pathway / test_argmin_rows_01

Function test_argmin_rows_01

python/pathway/tests/test_utils.py:468–492  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467
468def 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
495def test_argmin_rows_02():

Callers

nothing calls this directly

Calls 2

TFunction · 0.90
argmin_rowsFunction · 0.90

Tested by

no test coverage detected