[Numpy-discussion] how to add columns

Pauli Virtanen pav@iki...
Wed Jul 28 07:49:31 CDT 2010


Wed, 28 Jul 2010 08:43:25 -0400, wheres pythonmonks wrote:
[clip]
> Is there a best solution?  I don't like the matplotlib solution b/c of
> the "dll-hell" anti-pattern.  But the pure numpy solution looks like it
> has too many copies.

You cannot avoid making copies, since adding a new field changes the size 
of the array item.

> (or are recarrays pointers-of-pointers as opposed
> to contiguous memory?)

No.

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list