[Numpy-discussion] List of arrays
Nils Wagner
nwagner@iam.uni-stuttgart...
Mon May 11 06:00:12 CDT 2009
On Mon, 11 May 2009 06:54:45 -0400
Alan G Isaac <aisaac@american.edu> wrote:
> On 5/11/2009 6:28 AM Nils Wagner apparently wrote:
>> How can I convert a list of arrays into one array ?
>
> Do you mean one long array, so that ``concatenate``
> is appropriate, or a 2d array, in which case you
> can just use ``array``.
>
> But your example looks like you should preallocate the
> larger array and fill it as the data arrive,
> if that's possible.
>
> Alan Isaac
>
Hi Alan,
concatenate works fine for me.
The problem is that the arrays within the list vary in
length.
Thank you very much.
Nils
More information about the Numpy-discussion
mailing list