Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to_pandas calls in pytests #14552

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion python/cudf/cudf/tests/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,6 @@ def test_parquet_writer_decimal(decimal_type, data):
gdf.to_parquet(buff)

got = pd.read_parquet(buff, dtype_backend="numpy_nullable")
assert_eq(gdf.to_pandas(nullable=True), got)
assert_eq(gdf["val"].to_pandas(nullable=True), got["val"])
assert_eq(gdf["dec_val"].to_pandas(), got["dec_val"])

Expand Down
5 changes: 2 additions & 3 deletions python/cudf/cudf/tests/test_udf_masked_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,13 @@ def func(row):
gdf["a"] = gdf["a"].astype(dtype_l)
gdf["b"] = gdf["b"].astype(dtype_r)

pdf = gdf.to_pandas(nullable=True)

pdf = gdf.to_pandas()
expect = op(pdf["a"], pdf["b"])
obtain = gdf.apply(func, axis=1)
assert_eq(expect, obtain, check_dtype=False)
# TODO: After the following pandas issue is
# fixed, uncomment the following line and delete
# through `to_pandas(nullable=True)` statement.
# through `to_pandas()` statement.
# https://github.com/pandas-dev/pandas/issues/52411

# run_masked_udf_test(func, gdf, nullable=False, check_dtype=False)
Expand Down
Loading