title: Python error: TypeError: Expected string or bytes-like object
body: <p>I'm currently working on a sentiment analysis project using nltk in python. I can't get my script to pass in rows of text from my csv to perform tokenization on. However, if I pass the text in one entry at a time it works fine. I am getting one persistent error: 'TypeError: expected string or bytes-like object' when I try and pass the whole csv in.
  Here is the printed data frame and python code I'm using. Any help to resolve this issue would be great.</p>
  
  <pre><code>                              abstract
  0    Allergic diseases are often triggered by envir...
  1    omal lymphopoietin (TSLP) has important roles ...
  2    of atrial premature beats, and a TSLP was high...
  3     deposition may play an important role in the ...
  4    ted by TsPLP was higher than that mediated by ...
  5    nal Stat5 transcription factor in that TSLP st...
  </code></pre>
  
  <pre><code>data = pd.read_csv('text.csv', sep=';', encoding = 'utf-8')
  x = data.loc[:, 'abstract']
  print(x.head())
  tokens = nltk.word_tokenize(x)
  print(tokens)
  </code></pre>
  
  <p>Attached is the full stack trace error. 
  EDIT: print statement</p>
  
  <p><a href="https://i.stack.imgur.com/CkN0i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CkN0i.png" alt="enter image description here"></a></p>
  
  <p>EDIT: Output</p>
  
  <p><a href="https://i.stack.imgur.com/qMSRO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qMSRO.png" alt="enter image description here"></a></p>