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

Method select

python/pathway/stdlib/temporal/_asof_join.py:408–418  ·  view source on GitHub ↗
(self, *args: pw.ColumnReference, **kwargs: Any)

Source from the content-addressed store, hash-verified

406 @arg_handler(handler=select_args_handler)
407 @trace_user_frame
408 def select(self, *args: pw.ColumnReference, **kwargs: Any) -> pw.Table:
409 if self._mode not in [pw.JoinMode.LEFT, pw.JoinMode.RIGHT, pw.JoinMode.OUTER]:
410 raise ValueError(f"Unsupported asof join mode: {self._mode}")
411
412 expressions: dict[str, expr.ColumnExpression] = {}
413
414 all_args = combine_args_kwargs(args, kwargs)
415
416 for new_name, expression in all_args.items():
417 expressions[new_name] = self._sub_desugaring.eval_expression(expression)
418 return self._merge_result.select(**expressions)
419
420
421def _asof_join(

Callers 15

_create_input_tableFunction · 0.45
_pandas_transformerFunction · 0.45
unpack_colFunction · 0.45
unpack_col_dictFunction · 0.45
multiapply_all_rowsFunction · 0.45
inactivity_detectionFunction · 0.45
add_update_timestamp_utcFunction · 0.45
_compute_group_reprMethod · 0.45
_joinMethod · 0.45
_applyMethod · 0.45
_build_groupsFunction · 0.45
_mergeMethod · 0.45

Calls 3

combine_args_kwargsFunction · 0.90
itemsMethod · 0.80
eval_expressionMethod · 0.45

Tested by 2

test_bucketer_euclideanFunction · 0.36
test_bucketer_cosineFunction · 0.36