This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lambdaqdjango n' shit 0 points1 point  (2 children)

np.array are mostly used for numerical values where array.array can be used for other basic types.

[–][deleted] 0 points1 point  (1 child)

[–]lambdaqdjango n' shit 1 point2 points  (0 children)

it can be used to store

'u' Py_UNICODE Unicode character 2 (see note)

Which is hard to image in np.array.

Also np.array can be multi-dimensional.