ValueError: setting an array element with a sequence
17:48 12 Jan 2011

Why do the following code samples:

np.array([[1, 2], [2, 3, 4]])

np.array([1.2, "abc"], dtype=float)

all give the following error?

ValueError: setting an array element with a sequence.
python arrays numpy slice valueerror