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

Method max_elements

bigflow_python/python/bigflow/pcollection.py:298–316  ·  view source on GitHub ↗

取前n大元素,等同于 :func:`bigflow.transforms.max_elements(self, n, key) ` Args: n (int): 必须大于0 key (function, optional): 用于提取key的函数,与Python内置``max()``中的 ``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 4

group_top_n.pyFile · 0.80
max_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