Re: [Tutor] inserting a vector into an array - numpy Q

2008-06-10 Thread Danny Yoo
I know there must be a better way to do this with slices, but I can't seem to figure it out - I keep getting errors about the need to have the same dimensions: Look at the error message more closely. ValueError: arrays must have same number of dimensions What does this mean? The 1-d a

[Tutor] inserting a vector into an array - numpy Q

2008-06-10 Thread washakie
I know there must be a better way to do this with slices, but I can't seem to figure it out - I keep getting errors about the need to have the same dimensions: Here's what I'm trying: >>> type(time) >>> type(new_data) >>> shape(time) (1334,) >>> shape(new_data) (1334, 54) >>> newArray=concatena