title: Extract hashtags from entities and add them to new column
body: <p>I created the following dataframe from a json tweets file.</p>
  
  <pre><code>tweets['text'] =    list(map(lambda tweet: tweet['text'], tweets_data))
  tweets['date'] =    list(map(lambda tweet: tweet['created_at'], tweets_data))
  tweets['lang'] =    list(map(lambda tweet: tweet['lang'], tweets_data))
  tweets['place_type'] = list(map(lambda tweet: tweet['place']['place_type'] if tweet['place'] != None else None, tweets_data))
  tweets['place_name'] = list(map(lambda tweet: tweet['place']['full_name'] if tweet['place'] != None else None, tweets_data))
  tweets['country'] = list(map(lambda tweet: tweet['place']['country'] if tweet['place'] != None else None, tweets_data))
  tweets['hashtags'] =  list(map(lambda tweet: tweet['entities']['hashtags'], tweets_data))
  </code></pre>
  
  <p>The current output of the hashtags column is the following:</p>
  
  <pre><code>"[{'text': 'NOJUSTICE', 'indices': [62, 72]}, {'text': 'TrumpPence', 'indices': [93, 104]}]"
  </code></pre>
  
  <p>I'm trying to create a new column that only contains the hashtags. For example:</p>
  
  <p>NOJUSTICE and Trumpence</p>
  
  <p>I tried the following code:</p>
  
  <pre><code>ht=[]
  for s in range(len(tweets['hashtags'])):
      hasht=[]
      for t in range(len(tweets.hashtags[s])):
          hasht.append(tweets['hashtags'][s][t]['text'])
          t=t+1
      ht.append(hasht)
      s=s+1
  tweets['HT']=zip(ht)
  </code></pre>
  
  <p>and I received the following error:</p>
  
  <pre><code>TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-38-9780008354d7&gt; in &lt;module&gt;
        3     hasht=[]
        4     for t in range(len(tweets.hashtags[s])):
  ----&gt; 5         hasht.append(tweets['hashtags'][s][t]['text'])
        6         t=t+1
        7     ht.append(hasht)
  
  TypeError: string indices must be integers
  </code></pre>
  
  <p><a href="https://wetransfer.com/downloads/1e8b0af1332f0b31fa12c957ed334dd520190918223501/f66510" rel="nofollow noreferrer">sample csv file</a></p>
  
  <p>i want the hashtags column to only contain the hashtags without the indices and other stuff</p>
  
  <p>UPDATE: i used the following suggestion and got the same error</p>
  
  <pre><code>tweets['hashtags'].apply(lambda x: [d['text'] for d in x])
  </code></pre>