Skip to content

Commit

Permalink
Addressed PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
osoucy committed Feb 18, 2025
1 parent 8be79cc commit 7f5552b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/expr_and_series/cast_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def test_cast_struct(request: pytest.FixtureRequest, constructor: Constructor) -
)

# Cast
dtype = nw.Struct([nw.Field("movie ", nw.String()), nw.Field("rating", nw.Float64())])
dtype = nw.Struct([nw.Field("movie ", nw.String()), nw.Field("rating", nw.Float32())])
result = nw.from_native(native_df).select(nw.col("a").cast(dtype)).lazy().collect()
assert result.schema == {"a": dtype}

Expand Down

0 comments on commit 7f5552b

Please sign in to comment.