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

Function test_remove_errors_identity

python/pathway/tests/test_errors.py:711–741  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

709
710
711def test_remove_errors_identity():
712 t1 = T(
713 """
714 a | b | c
715 3 | 3 | 1
716 4 | 1 | 2
717 5 | 5 | 1
718 6 | 2 | 3
719 """
720 )
721
722 t2 = t1.select(x=pw.this.a // pw.this.b)
723 t3 = t1.select(y=pw.this.a // pw.this.c)
724
725 t4 = t1.select(pw.this.a, x=t2.x, y=t3.y)
726
727 res = t4.remove_errors()
728
729 assert_table_equality_wo_index(
730 res,
731 T(
732 """
733 a | x | y
734 3 | 1 | 3
735 4 | 4 | 2
736 5 | 1 | 5
737 6 | 3 | 2
738 """
739 ),
740 terminate_on_error=False,
741 )
742
743
744def test_reindex_with_duplicate_key():

Callers

nothing calls this directly

Calls 3

TFunction · 0.90
remove_errorsMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected