title: Read npy data file in Python and export as text file
body: <p>I have an array saved in a npy file and want to export it into readable text columns.</p>
  
  <p>The array is here: <a href="https://drive.google.com/open?id=1DErx4e0NBJJNxixMSuGQaahdAcGX7jkI" rel="nofollow noreferrer">https://drive.google.com/open?id=1DErx4e0NBJJNxixMSuGQaahdAcGX7jkI</a></p>
  
  <p>I did the following:</p>
  
  <pre><code>import numpy as np
  data = np.load('D:/20190805_01_data.npy')
  </code></pre>
  
  <p><code>type(data</code>) gives <code>numpy.ndarray</code></p>
  
  <p><code>len(data)</code> gives <code>1363</code></p>
  
  <p><code>data.ndim</code> gives <code>3</code></p>
  
  <p>To export data I tried:</p>
  
  <pre><code>np.savetxt('D:/data.txt',data, delimiter=' ')
  </code></pre>
  
  <p>which does not work.</p>
  
  <p>What is the correct solution?</p>