title: Python Loop: TypeError: string indices must be integers
body: <p>For a current research project, I am planning to read the JSON object "Main_Text" within a pre-defined time range on basis of Python/Pandas. When running the word-counting loop, the code however yields the error <code>TypeError: string indices must be integers</code> for <code>line = row['Text Main']</code>.</p>
  
  <p><code>Text Main</code> only contains strings/text and no integers. I have alreay been through trouble-shooting threads but not found a solution to this problem yet. Is there any helpful tweak to make this work?</p>
  
  <p>The JSON file has the following structure:</p>
  
  <pre><code>[
  {"No":"121","Stock Symbol":"A","Date":"05/11/2017","Text Main":"Sample text"}
  ]
  </code></pre>
  
  <p>And the relevant code excerpt looks like this:</p>
  
  <pre><code>import string
  import json
  import csv
  
  import pandas as pd
  import datetime
  
  import numpy as np
  
  
  # Loading and reading dataset
  file = open("Glassdoor_A.json", "r")
  data = json.load(file)
  df = pd.json_normalize(data)
  df['Date'] = pd.to_datetime(df['Date'])
  
  
  # Create an empty dictionary
  d = dict()
  
  
  # Filtering by date
  start_date = "01/01/2009"
  end_date = "01/01/2015"
  
  after_start_date = df["Date"] &gt;= start_date
  before_end_date = df["Date"] &lt;= end_date
  
  between_two_dates = after_start_date &amp; before_end_date
  filtered_dates = df.loc[between_two_dates]
  
  print(filtered_dates)
  
  
  # Processing
  for row in filtered_dates:
      line = row['Text Main']
  </code></pre>