MCPcopy Create free account
hub / github.com/catboost/catboost / single

Function single

library/python/func/__init__.py:12–15  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

10
11
12def single(x):
13 if len(x) != 1:
14 raise Exception('Length of {} is not equal to 1'.format(x))
15 return x[0]
16
17
18class _Result(object):

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected