title: How to convert mnist dataset in array
body: <p>Hello consider following code</p>
  
  <pre><code># load the mnist training data CSV file into a list
  training_data_file = open("Training_Set/mnist_train_100.csv", 'r')
  training_data_list = training_data_file.readlines()
  training_data_file.close()
  
  
  for record in training_data_list:
      all_values = record.split(',')
      x_inputs = (np.asfarray(all_values[1:]) / 255.0 * 0.99) + 0.01
  
  print("xinput=" + str(x_inputs))
  print(len(training_data_list))
  MyCompleteInput = np.array(x_inputs,len(training_data_list))
  </code></pre>
  
  <p>I want to put x_inputs and len(training_data_list) into an array so if I print the shape of the array I get an output of (784,100).</p>
  
  <p>But if I run my code I get following error:</p>
  
  <pre><code>TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-38-b0f129f57bcb&gt; in &lt;module&gt;()
       11 print("xinput=" + str(x_inputs))
       12 print(len(training_data_list))
  ---&gt; 13 MyCompleteInput = np.array(x_inputs,len(training_data_list))
       14 
       15 
  
  TypeError: data type not understood
  </code></pre>
  
  <p>Can somebody help me out? tnx</p>