Mercurial > hg > numerics
comparison numerics/data.py @ 50:e39643d18d82
note to self
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 19 Jan 2015 12:45:06 -0800 |
parents | 5caa67643162 |
children | e7e49b46832b |
comparison
equal
deleted
inserted
replaced
49:5caa67643162 | 50:e39643d18d82 |
---|---|
25 if not array: | 25 if not array: |
26 return array # nothing to do | 26 return array # nothing to do |
27 | 27 |
28 n_cols = len(array[0]) | 28 n_cols = len(array[0]) |
29 retval = [[]] * n_cols | 29 retval = [[]] * n_cols |
30 raise NotImplementedError('TODO') # -> record TODO items | 30 return zip(*array) |
31 # XXX this is a nothing function; we shouldn't use this | |
31 | 32 |
32 class ColumnLengthException(ColumnNumberException): | 33 class ColumnLengthException(ColumnNumberException): |
33 """ | 34 """ |
34 wrong length of column: {given} given; {expected} expected | 35 wrong length of column: {given} given; {expected} expected |
35 """ | 36 """ |