From 0c334f699e9ffa95d29719ae19900560f24e8299 Mon Sep 17 00:00:00 2001 From: "Thomas (Tom) C. Gorordo" Date: Mon, 25 May 2026 07:41:16 -0700 Subject: [PATCH] comment compression in polars graph building --- src/smithy/rcv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smithy/rcv.py b/src/smithy/rcv.py index c9f556e..07c19dc 100644 --- a/src/smithy/rcv.py +++ b/src/smithy/rcv.py @@ -28,6 +28,8 @@ def _pmg_from_rcv(ballots: pl.DataFrame) -> rwx.PyDiGraph: pmg = rwx.PyDiGraph() nodes = {c: pmg.add_node(c) for c in candidates} + #compressed = ballots.group_by(ballots.columns).len().rename({"len": "count"}) + exprs = [] pairs = list(combinations(candidates, 2))