Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ _random_split_take
Function
_random_split_take
dask/dataframe/dask_expr/_expr.py:1817–1821 ·
view source on GitHub ↗
(df, i, ndim)
Source
from the content-addressed store, hash-verified
1815
1816
1817
def
_random_split_take(df, i, ndim):
1818
df = df[df[
"_split"
] == i].drop(columns=
"_split"
)
1819
if
ndim == 1:
1820
return
df[df.columns[0]]
1821
return
df
1822
1823
1824
class
SplitTake(Blockwise):
Callers
nothing calls this directly
Calls
1
drop
Method · 0.80
Tested by
no test coverage detected