MCPcopy
hub / github.com/dask/dask / maximum

Function maximum

dask/bag/tests/test_bag.py:491–493  ·  view source on GitHub ↗
(x, y=0)

Source from the content-addressed store, hash-verified

489 dy = db.from_sequence(y, npartitions=10)
490
491 def maximum(x, y=0):
492 y = repeat(y) if isinstance(y, int) else y
493 return [max(a, b) for (a, b) in zip(x, y)]
494
495 sol = maximum(x, y=10)
496 assert_eq(db.map_partitions(maximum, dx, y=10), sol)

Callers 1

Calls 2

maxFunction · 0.85
repeatFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…