MCPcopy Index your code
hub / github.com/python/cpython / _parse_groupby

Function _parse_groupby

Tools/c-analyzer/cpython/_capi.py:238–249  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

236
237
238def _parse_groupby(raw):
239 if not raw:
240 raw = 'kind'
241
242 if isinstance(raw, str):
243 groupby = raw.replace(',', ' ').strip().split()
244 else:
245 raise NotImplementedError
246
247 if not all(v in GROUPINGS for v in groupby):
248 raise ValueError(f'invalid groupby value {raw!r}')
249 return groupby
250
251
252def _resolve_full_groupby(groupby):

Callers 2

summarizeFunction · 0.85
_collateFunction · 0.85

Calls 3

splitMethod · 0.45
stripMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…