pe('|S3') # This could also be 'Sxxx' where xxx is the
length of the largest string in the array
Alternatively, as a hackjob type check you could also do an
"isinstance" check on the first element of the array since, unlike
lists, arrays have uniform elements all the way
Use a week functions are basically function that you use for a short
period of time where a full fledged well designed program is more of a
waste of time than anything else. Other then that, for what you miss
it really, really depends on your applications and goals. I work on
signal processing and
Actually, all the points in this thread have been very good points but
I just want to add my 2 cents since I was in your boat just a month
ago and decided to try out python after seeing what it could do.
In short, I decided to look elsewhere as I was dealing with vector
data in database and mainta
er
than it actually is and I am quite frankly afraid of writing routines
in one format and realizing later that it creates problems that I need
to rewrite.
I have tried searching for previous similar posts but could not find
any. My apologies if this is a repeat or a severly dumb question.
Regards,
Si
Awww, this is quite right. I kept using the a[0][:] notation and I
assume I am simply pulling out single arrays from the array "list".
Thank you very much for the prompt reply. (And sorry for wasting your
time :P)
On Mar 29, 3:46 pm, Travis Oliphant <[EMAIL PROTECTED]> wrote
Hi,
I am relatively new to Python/NumPy switching over from Matlab and
while porting some of my matlab code for practice I ran into the
following problem.
Assume we have a 2D Matrix such that
a = array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
If I want the second row I