title: Trying to separate my data points into multiple arrays, instead of having one big array
body: <p>Im working on an nlp project and am working with fake news, with one of the inputs being the headlines. I have tokenized my headlines in the following format: </p>
  
  <pre><code>[['Four', 'ways', 'Bob', 'Corker', 'skewered', 'Donald', 'Trump'], ['Linklater', "'s", 'war', 'veteran', 'comedy', 'speaks', 'to', 'modern', 'America', ',', 'says', 'star'], ['Trump', '’', 's', 'Fight', 'With', 'Corker', 'Jeopardizes', 'His', 'Legislative', 'Agenda']
  </code></pre>
  
  <p>Right now, each headline is in its own array, within a 2d array. However, when I removed the stopwords,it turns into this: </p>
  
  <pre><code>['Four', 'ways', 'Bob', 'Corker', 'skewered', 'Donald', 'Trump', 'Linklater', "'s", 'war', 'veteran', 'comedy', 'speaks', 'modern', 'America', ',', 'says', 'star', 'Trump', '’', 'Fight', 'With', 'Corker', 'Jeopardizes', 'His', 'Legislative', 'Agenda']
  </code></pre>
  
  <p>Each word is its own element in a 1-d array. I want to make it so that each headline has its own array, like with the tokenized array. How would I go about doing this?</p>
  
  <p>Here is my code: </p>
  
  <pre><code>data = pd.read_csv("/Users/amanpuranik/Desktop/fake-news-detection/data.csv")
  data = data[['Headline', "Label"]]
  
  x = np.array(data['Headline'])
  y = np.array(data["Label"])
  
  # tokenization of the data here'
  headline_vector = []
  
  for  headline in x:
      headline_vector.append(word_tokenize(headline))
  
  #print(headline_vector)
  
  
  
  stopwords = set(stopwords.words('english'))
  
  #removing stopwords at this part
  filtered = []
  
  for sentence in headline_vector:
      for word in sentence:
          if word not in stopwords:
              filtered.append(word)
  </code></pre>