[Numpy-discussion] column_stack with len +/-1

Ryan Krauss ryanlists at gmail.com
Tue May 9 13:11:23 EDT 2006


I am trying to column_stack a bunch of data vectors that I think
should be the same length.  For whatever reason, my DAQ system doesn't
always put out exactly the same length vector.  They should be 11,000
elements long, but some are 11,000+/-1.

How do I efficently drop one or two elements of the lists that are too
long without making a bunch of accidental copies?

What would
newlist=[item[0:11000] for item in oldlist]
do?

Ryan




More information about the NumPy-Discussion mailing list