From 14237a1a911fd0ef48555db63c8f4b7b4f533cdc Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Wed, 10 Jul 2024 02:46:31 +0200 Subject: [PATCH] Run NumPy 2 ruff fixes (changing NaN to nan) (#606) This just fixes a simple error that would appear when run with NumPy 2 based on the ruff check. (This does not mean there are no other issues.) xref: https://github.com/rapidsai/build-planning/issues/38 Authors: - Sebastian Berg (https://github.com/seberg) Approvers: - Ajay Thorve (https://github.com/AjayThorve) URL: https://github.com/rapidsai/cuxfilter/pull/606 --- python/cuxfilter/tests/assets/test_gpu_histogram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cuxfilter/tests/assets/test_gpu_histogram.py b/python/cuxfilter/tests/assets/test_gpu_histogram.py index c5f7ae4e..9f5ced38 100644 --- a/python/cuxfilter/tests/assets/test_gpu_histogram.py +++ b/python/cuxfilter/tests/assets/test_gpu_histogram.py @@ -97,12 +97,12 @@ def test_calc_groupby(aggregate_fn, result): @pytest.mark.parametrize( "x, y, aggregate_fn, result", [ - ("key", "val", "mean", np.array([[1.0, 2.0], [np.NaN, 3.0]])), + ("key", "val", "mean", np.array([[1.0, 2.0], [np.nan, 3.0]])), ("val", "key", "mean", np.array([[3.0], [2.0]])), ], ) def test_calc_groupby_for_nulls(x, y, aggregate_fn, result): - df = cudf.DataFrame({"key": [1, 2], "val": [np.NaN, 3]}) + df = cudf.DataFrame({"key": [1, 2], "val": [np.nan, 3]}) bc = BaseChart() bc.x = x bc.y = y