title: How to use Word Tokenize on a single column in a Data Frame (Python)
body: <p>I'm trying to use NLTK word_tokenize on an excel file I've opened as a data frame. The column I want to use word_tokenize on contains sentences. How can I pull out that specific column from my data frame to tokenize it? The name of the column I'm trying to access is called "Complaint / Query Detail".</p>
  
  <pre><code>import pandas as pd
  from nltk import word_tokenize
  
  file = "List of Complaints.xlsx"
  
  df = pd.read_excel(file, sheet_name = "All Complaints" )
  
  token = df["Complaint / Query Detail"].apply(word_tokenize)
  </code></pre>
  
  <p>I tried this method but I keep getting errors.</p>