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

Function _nfirst

dask/dataframe/dask_expr/_reductions.py:1374–1375  ·  view source on GitHub ↗
(df, columns, n, ascending)

Source from the content-addressed store, hash-verified

1372
1373
1374def _nfirst(df, columns, n, ascending):
1375 return df.sort_values(by=columns, ascending=ascending).head(n)
1376
1377
1378def _nlast(df, columns, n, ascending):

Callers

nothing calls this directly

Calls 2

sort_valuesMethod · 0.80
headMethod · 0.45

Tested by

no test coverage detected