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

Function test_sample

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

Source from the content-addressed store, hash-verified

1836
1837
1838def test_sample(df):
1839 result = df.sample(frac=0.5)
1840
1841 assert_eq(result, result)
1842
1843 result = df.sample(frac=0.5, random_state=1234)
1844 expected = df.sample(frac=0.5, random_state=1234)
1845 assert_eq(result, expected)
1846
1847
1848@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