MCPcopy Create free account
hub / github.com/baidu/bigflow / min_elements

Method min_elements

bigflow_python/python/bigflow/pcollection.py:336–354  ·  view source on GitHub ↗

取前n小元素,等同于 :func:`bigflow.transforms.min_elements(self, key) ` Args: n (int): 必须大于0 key (function, optional): 用于提取key的函数,与Python内置``min()``中的 ``key`` 参数相同 **options: 可配置选项 Returns:

(self, n, key=None, **options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

min_elementsFunction · 0.80
test_stringMethod · 0.80
test_simpleMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_stringMethod · 0.64
test_simpleMethod · 0.64