Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
def
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
18
class
_Result(object):
Callers
nothing calls this directly
Calls
2
len
Function · 0.85
format
Method · 0.45
Tested by
no test coverage detected