MCPcopy
hub / github.com/dask/dask / sample

Function sample

dask/dataframe/methods.py:403–405  ·  view source on GitHub ↗
(df, state, frac, replace)

Source from the content-addressed store, hash-verified

401
402
403def sample(df, state, frac, replace):
404 rs = np.random.RandomState(state)
405 return df.sample(random_state=rs, frac=frac, replace=replace) if len(df) > 0 else df
406
407
408def drop_columns(df, columns, dtype):

Callers

nothing calls this directly

Calls 2

sampleMethod · 0.80
RandomStateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…