title: CountVectorizer is resulting in error in python
body: <p><em>I am trying to convert to vectors for a dataset that has two columns, review and sentiment. Below is the code.</em></p>
  
  <pre><code>data = pd.read_csv('/content/IMDB Dataset_SM.csv')
  review = data['review']
  review= [review] 
  from sklearn.feature_extraction.text import CountVectorizer
  cv = CountVectorizer()
  x= cv.fit_transform(review)
  a=x.toarray()
  col = cv.get_feature_names()
  df = pd.DataFrame(data=a, columns=col)
  df
  I am getting error :
  AttributeError: 'Series' object has no attribute 'lower'.
  </code></pre>
  
  <p>Please help !!! Thanks</p>