MCPcopy
hub / github.com/pathwaycom/pathway / __init__

Method __init__

python/pathway/internals/groupbys.py:284–304  ·  view source on GitHub ↗
(
        self,
        _join_result: JoinResult,
        _args: Iterable[expr.ColumnExpression],
        _id: expr.ColumnReference | None,
    )

Source from the content-addressed store, hash-verified

282 _groupby: GroupedTable
283
284 def __init__(
285 self,
286 _join_result: JoinResult,
287 _args: Iterable[expr.ColumnExpression],
288 _id: expr.ColumnReference | None,
289 ):
290 super().__init__(
291 _join_result._universe,
292 {
293 **_join_result._substitution,
294 thisclass.this: _join_result,
295 },
296 _join_result,
297 )
298 tab, subs = _join_result._substitutions()
299 self._substitution_desugaring = SubstitutionDesugaring(subs)
300 _args = [self._substitution_desugaring.eval_expression(arg) for arg in _args]
301 if _id is not None:
302 _id = self._substitution_desugaring.eval_expression(_id)
303
304 self._groupby = tab.groupby(*_args, id=_id)
305
306 @desugar
307 @arg_handler(handler=reduce_args_handler)

Callers

nothing calls this directly

Calls 5

__init__Method · 0.45
_substitutionsMethod · 0.45
eval_expressionMethod · 0.45
groupbyMethod · 0.45

Tested by

no test coverage detected