I selected several rows of the first column and used both .values and as_matrix() to convert it to numpy array.
x1 = df.iloc[[1,3,4,64,34], 0]
The dimension of the each element in the dataframe is a (3, 3, 5) numpy array. I would like to output a (5, 3, 3, 5) numpy array from the dataframe. However when I use .values, i get a (5, ) shape array with a dtype =unit8 at the end of each element. How can I go about fixing this?