| 3060 | [None, True, False], |
| 3061 | ) |
| 3062 | def test_cov_gpu(numeric_only): |
| 3063 | cudf = pytest.importorskip("cudf") |
| 3064 | |
| 3065 | # cudf DataFrame |
| 3066 | df = cudf.from_pandas(_compat.makeDataFrame()) |
| 3067 | ddf = dd.from_pandas(df, npartitions=6) |
| 3068 | |
| 3069 | numeric_only_kwarg = {} |
| 3070 | if numeric_only is not None: |
| 3071 | numeric_only_kwarg = {"numeric_only": numeric_only} |
| 3072 | |
| 3073 | res = ddf.cov(**numeric_only_kwarg) |
| 3074 | res2 = ddf.cov(**numeric_only_kwarg, split_every=2) |
| 3075 | sol = df.cov(**numeric_only_kwarg) |
| 3076 | assert_eq(res, sol) |
| 3077 | assert_eq(res2, sol) |
| 3078 | assert res._name == ddf.cov(**numeric_only_kwarg)._name |
| 3079 | assert res._name != res2._name |
| 3080 | |
| 3081 | |
| 3082 | def test_corr(): |