MCPcopy Index your code
hub / github.com/dask/dask / test_sample

Function test_sample

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

Source from the content-addressed store, hash-verified

1824
1825
1826def test_sample(df):
1827 result = df.sample(frac=0.5)
1828
1829 assert_eq(result, result)
1830
1831 result = df.sample(frac=0.5, random_state=1234)
1832 expected = df.sample(frac=0.5, random_state=1234)
1833 assert_eq(result, expected)
1834
1835
1836@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

Used in the wild real call sites across dependent graphs

searching dependent graphs…