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

Function test_select_column_ix_args

python/pathway/tests/test_common.py:819–837  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

817
818
819def test_select_column_ix_args():
820 t1 = T(
821 """
822 | a | b
823 0 | 3 | 1
824 1 | 4 | 2
825 2 | 7 | 0
826 """
827 )
828 expected = T(
829 """
830 | a | prev_a
831 0 | 4 | 3
832 1 | 7 | 4
833 2 | 3 | 7
834 """
835 )
836 t2 = t1.select(t1.ix(t1.pointer_from(t1.b)).a, prev_a=t1.a)
837 assert_table_equality(t2, expected)
838
839
840def test_select_in_multiple_independent_tables():

Callers

nothing calls this directly

Calls 4

TFunction · 0.90
selectMethod · 0.45
ixMethod · 0.45
pointer_fromMethod · 0.45

Tested by

no test coverage detected