Skip to content

Commit

Permalink
Be sure to test .rows() not .iter_rows()
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Oct 17, 2024
1 parent a9bb78c commit c0dd112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/frame/rows_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_rows_eager(
# posit-dev/py-shiny relies on `.rows(named=False)` to return unnamed rows
data = {"a": [1, 3, 2], "_b": [4, 4, 6], "z": [7.0, 8, 9], "1": [5, 6, 7]}
df = nw.from_native(constructor_eager(data), eager_only=True)
result = list(df.iter_rows(named=named))
result = df.rows(named=named)
assert result == expected


Expand Down

0 comments on commit c0dd112

Please sign in to comment.