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

Function test_sample

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

Source from the content-addressed store, hash-verified

1873
1874
1875def test_sample(df):
1876 result = df.sample(frac=0.5)
1877
1878 assert_eq(result, result)
1879
1880 result = df.sample(frac=0.5, random_state=1234)
1881 expected = df.sample(frac=0.5, random_state=1234)
1882 assert_eq(result, expected)
1883
1884
1885@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