MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / sort

Method sort

benchmarks/experiment-dask.py:265–272  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

263 )
264
265 def sort(values):
266 def extract(v: str) -> str:
267 if v.startswith("Dask"):
268 v = v[6:]
269 return v[: v.index("p")].zfill(3)
270 return v
271
272 return values.map(extract)
273
274 df = df.sort_values(by="task-count")
275 df = df.sort_values(by="environment", key=sort, kind="stable")

Callers 13

test_task_prioritiesFunction · 0.80
parse_refMethod · 0.80
print_job_detailMethod · 0.80
print_explanationMethod · 0.80
get_socketsMethod · 0.80
sorted_vecFunction · 0.80

Calls

no outgoing calls