[Tutor] create numpy array from list of strings
If the above is intended to be Python code, it has problems. Rewrite it thusly?Then let a numpy expert finish the task. -- Bob Gailer 919-636-4239 Chapel Hill, NC.
If the above is intended to be Python code, it has problems. Rewrite it thusly?Then let a numpy expert finish the task. -- Bob Gailer 919-636-4239 Chapel Hill, NC.
The NumPy doc.html, and the Numeric Tutorial, both mention arrays of Python objects, but with little elaboration.I'd really like to make an array of lists, but I can't see how to. I can get by with a list of list of lists, but it's clumsy. Does the array of objects feature truly exist?
if in that example I also change the strides: int s = tmp->strides[1]; tmp->strides[0] = s; tmp->strides[1] = s * dim0[0]; Then I get in python the fortran-style array in right order. However, I don't know if this is the usual way or if it has a performance overhead ... Thanks, LG Georg.
Maybe this is not so clever, but I can't find it in the doc. > I need to get all indices/index of all occurrences of a value in a > numpy > array > > >.Previous message (by thread): [Numpy-discussion] Getting indices from numpy array withcondition.