The following code creates two arrays, A and B. A is actually a numpy array of arrays, only because its subarrays don't have the same length.
arr1 = np.arange(2,7)
arr2 = np.arange(5,7)
arr3 = np.arange(7,9)
A = np.array([arr1, arr2, arr3])
arr1 = np.arange(2,4)
arr2 = np.arange(5,7)
arr3 = np.arange(7,9)
B = np.array([arr1, arr2, arr3])
Now, my question is how to force B also to be an array of arrays even if its subarrays have the same length?