title: Python Word Vect numpy array, on saving to csv gave error on dimension , Expected 1D or 2D array, got 0D array instead
body: <p>Saving wordVect gave error,</p>
  
  <pre><code>from sklearn.feature_extraction.text import CountVectorizer
  corpus = [
      'This is the first document.',
      'This document is the second document.',
      'And this is the third one.',
      'Is this the first document?',
  ]
  vectorizer = CountVectorizer(ngram_range=()
  X = vectorizer.fit_transform(corpus)
  
  # Save The Vector 
  np.savetxt('logvect.csv', X, delimiter=',')
  </code></pre>
  
  <p>Got Error</p>
  
  <p><strong>----> 1 np.savetxt('logvect.csv', X, delimiter=',')</strong></p>
  
  <pre><code>   1375         if X.ndim == 0 or X.ndim &gt; 2:
     1376             raise ValueError(
  -&gt; 1377                 "Expected 1D or 2D array, got %dD array instead" % X.ndim)
     1378         elif X.ndim == 1:
     1379             # Common case -- 1d array of numbers
  
  ValueError: Expected 1D or 2D array, got 0D array instead
  </code></pre>