title: Convert numpy array shape from (1, 100 ) to (100, ) in python
body: <p>I have a np.array that I want to store it in a mat file and then to load it from my code. The code for storing it to mat file is the following:</p>
  
  <pre><code>data = {'reduced_train_face': reduced_train_face.tolist(),
          'reduced_train_audio': reduced_train_audio.tolist(),
          'reduced_audio_labels': reduced_audio_labels.tolist()}
  
  m4p.savemat('data.mat', data)
  </code></pre>
  
  <p>And then the code for retrieving the info is the following:</p>
  
  <pre><code>reduced_audio_labels = np.array(data['reduced_audio_labels'])
  </code></pre>
  
  <p>I have noticed that the type of file is changing. The file before the loading was of type:</p>
  
  <p><a href="https://i.stack.imgur.com/cxLw0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cxLw0.jpg" alt="enter image description here"></a></p>
  
  <p>and when I loaded the file:</p>
  
  <p><a href="https://i.stack.imgur.com/JghCT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JghCT.jpg" alt="enter image description here"></a></p>
  
  <p>That change cause me several issues. How can I convert  : (1, 100 ) to   : (100, )??</p>