MCPcopy Create free account
hub / github.com/apache/arrow / product

Function product

python/pyarrow/util.py:154–158  ·  view source on GitHub ↗

Return a product of sequence items.

(seq)

Source from the content-addressed store, hash-verified

152
153
154def product(seq):
155 """
156 Return a product of sequence items.
157 """
158 return functools.reduce(lambda a, b: a*b, seq, 1)
159
160
161def get_contiguous_span(shape, strides, itemsize):

Callers 1

get_contiguous_spanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected