Skip to content

Commit

Permalink
remove any_h references
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-nelson-uiuc committed Jan 9, 2025
1 parent d2772eb commit 6e59b1b
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions tests/spark_like_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,35 +285,6 @@ def test_allh_all(pyspark_constructor: Constructor) -> None:
assert_equal_data(result, expected)


# copied from tests/expr_and_series/any_horizontal_test.py
@pytest.mark.parametrize("expr1", ["a", nw.col("a")])
@pytest.mark.parametrize("expr2", ["b", nw.col("b")])
def test_anyh(pyspark_constructor: Constructor, expr1: Any, expr2: Any) -> None:
data = {
"a": [False, False, True],
"b": [False, True, True],
}
df = nw.from_native(pyspark_constructor(data))
result = df.select(any=nw.any_horizontal(expr1, expr2))

expected = {"any": [False, True, True]}
assert_equal_data(result, expected)


def test_anyh_all(pyspark_constructor: Constructor) -> None:
data = {
"a": [False, False, True],
"b": [False, True, True],
}
df = nw.from_native(pyspark_constructor(data))
result = df.select(any=nw.any_horizontal(nw.all()))
expected = {"any": [False, True, True]}
assert_equal_data(result, expected)
result = df.select(nw.any_horizontal(nw.all()))
expected = {"a": [False, True, True]}
assert_equal_data(result, expected)


# copied from tests/expr_and_series/sum_horizontal_test.py
@pytest.mark.parametrize("col_expr", [nw.col("a"), "a"])
def test_sumh(pyspark_constructor: Constructor, col_expr: Any) -> None:
Expand Down

0 comments on commit 6e59b1b

Please sign in to comment.