Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ split
Function
split
library/python/func/__init__.py:190–197 ·
view source on GitHub ↗
(data, func)
Source
from the content-addressed store, hash-verified
188
189
190
def
split(data, func):
191
l, r = [], []
192
for
e in data:
193
if
func(e):
194
l.append(e)
195
else
:
196
r.append(e)
197
return
l, r
198
199
200
def
flatten_dict(dd, separator=
'.'
, prefix=
''
):
Callers
nothing calls this directly
Calls
2
func
Function · 0.85
append
Method · 0.45
Tested by
no test coverage detected