mirror of
https://github.com/tgorordo/smithy.git
synced 2026-06-05 16:22:15 -07:00
comment compression in polars graph building
This commit is contained in:
parent
19fadd84d8
commit
0c334f699e
1 changed files with 2 additions and 0 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue