MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_argmax_rows_02

Function test_argmax_rows_02

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

Source from the content-addressed store, hash-verified

550
551
552def 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
582def test_table_from_rows_stream():

Callers

nothing calls this directly

Calls 2

TFunction · 0.90
argmax_rowsFunction · 0.90

Tested by

no test coverage detected