MCPcopy 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
190def 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
200def flatten_dict(dd, separator='.', prefix=''):

Callers

nothing calls this directly

Calls 2

funcFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected