MCPcopy Create free account
hub / github.com/codemeta/codemeta / columns_from_rows

Function columns_from_rows

scripts/aggregate.py:28–30  ·  view source on GitHub ↗

from a list of rows, returns a list of columns.

(rows)

Source from the content-addressed store, hash-verified

26 exit(1)
27
28def columns_from_rows(rows):
29 """from a list of rows, returns a list of columns."""
30 return list(zip(*rows))
31
32def rows_from_columns(cols):
33 """from a list of columns, returns a list of rows."""

Callers 2

read_termsFunction · 0.85
aggregateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected