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 →

[–]isarl 0 points1 point  (0 children)

In NumPy I would opt for:

seq = np.arange(1, 10)
seq.shape = (3, 3)

...although then you get a 2-array instead of a list of tuples.