title: numpy array shape doesn't match subarrays'
body: <p>To train a neural network, I have used images to create array through a <code>pandas</code> dataframe, but the original shape does not match the shape of the subarray.</p>
  <p>The dataframe <code>data</code>:</p>
  <pre><code>    FilePaths   Labels
  0   [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Hourse Mackerel
  1   [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Gilt-Head Bream
  2   [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Gilt-Head Bream
  3   [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Gilt-Head Bream
  4   [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Red Mullet
  ... ... ...
  8995    [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Red Sea Bream
  8996    [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Black Sea Sprat
  8997    [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Red Mullet
  8998    [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Sea Bass
  8999    [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...   Hourse Mackerel
  </code></pre>
  <p>I turned it into a tuple <code>fish_data</code> with one array for data and one for labels. I also converted the labels into numbers.</p>
  <pre><code>change = {'Black Sea Sprat':0, 'Gilt-Head Bream':1, 'Hourse Mackerel':2, 'Red Mullet':3, 'Red Sea Bream':4, 'Sea Bass':5, 'Shrimp':6, 'Striped Red Mullet':7, 'Trout':8}
  fish_data = np.array(data.FilePaths), np.array(data.Labels)
  for i, v in enumerate(fish_data[1]):
      fish_data[1][i] = np.uint8(change[v])
  </code></pre>
  <p>Then I split the data into training and testing portions:</p>
  <pre><code>(x_train, y_train), (x_test,y_test) = (fish_data[0][:8100], fish_data[1][:8100]), (fish_data[0][:8100], fish_data[1][:8100])
  </code></pre>
  <p>Now, when I check <code>x_train.shape</code>, it's: <code>(8100,)</code></p>
  <p>But when I check <code>x_train[0].shape</code>, it returns<code>(445, 590)</code></p>
  <p>I expected <code>x_train.shape</code> to be <code>(8100, 445, 590)</code></p>
  <p>Can anyone tell me why this is happening and how to fix it?</p>
  <p>(Edit)
  <code>type(x_train)</code> and <code>type(x_train[0])</code> and <code>type(x_train[0][0])</code> are all  <code>np.ndarray</code></p>