comment compression in polars graph building

This commit is contained in:
Thomas (Tom) C. Gorordo 2026-05-25 07:41:16 -07:00
parent 19fadd84d8
commit 0c334f699e
Signed by: tgorordo
GPG key ID: 0CBED22BB0D94490

View file

@ -28,6 +28,8 @@ def _pmg_from_rcv(ballots: pl.DataFrame) -> rwx.PyDiGraph:
pmg = rwx.PyDiGraph() pmg = rwx.PyDiGraph()
nodes = {c: pmg.add_node(c) for c in candidates} nodes = {c: pmg.add_node(c) for c in candidates}
#compressed = ballots.group_by(ballots.columns).len().rename({"len": "count"})
exprs = [] exprs = []
pairs = list(combinations(candidates, 2)) pairs = list(combinations(candidates, 2))