MCPcopy Create free account
hub / github.com/dask/dask / test_sample

Function test_sample

dask/dataframe/dask_expr/tests/test_collection.py:1876–1883  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

1874
1875
1876def test_sample(df):
1877 result = df.sample(frac=0.5)
1878
1879 assert_eq(result, result)
1880
1881 result = df.sample(frac=0.5, random_state=1234)
1882 expected = df.sample(frac=0.5, random_state=1234)
1883 assert_eq(result, expected)
1884
1885
1886@xfail_gpu("align not supported by cudf")

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
sampleMethod · 0.80

Tested by

no test coverage detected