A weird issue I have encountered today. Would appreciate an explanation for that behavior of np.array:
l1 = np.array([[1], [1]])
type(l1)
Out[43]: numpy.ndarray
l2 = np.array([[1, 2], [1]])
type(l2)
Out[44]: numpy.ndarray
But:
type(l1[0])
Out[45]: numpy.ndarray
type(l2[0])
Out[47]: list
Any ideas?