Skip to content

Commit

Permalink
add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Nov 14, 2024
1 parent afef841 commit 525c670
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file not shown.
11 changes: 11 additions & 0 deletions python/cudf/cudf/tests/test_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,3 +1432,14 @@ def test_replace_timedelta_series():
)

assert_eq(pd_result, cudf_result)


def test_replace_multiple_rows(datadir):
path = datadir / "parquet" / "replace_multiple_rows.parquet"
pdf = pd.read_parquet(path)
gdf = cudf.read_parquet(path)

pdf.replace([np.inf, -np.inf], np.nan, inplace=True)
gdf.replace([np.inf, -np.inf], np.nan, inplace=True)

assert_eq(pdf, gdf, check_dtype=False)

0 comments on commit 525c670

Please sign in to comment.