From dd4946010edff13d227bd342140da363f57c4cba Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Wed, 3 Jul 2024 04:27:40 -0700 Subject: [PATCH] Run NumPy 2 ruff fixes (changing NaN to nan) 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.) --- 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