title: DataFrame constructor not properly called! error
body: <p>I am new to Python and I am facing problem in creating the <code>Dataframe</code> in the format of key and value i.e.</p>
  <pre><code>data = [{'key':'\[GlobalProgramSizeInThousands\]','value':'1000'},]
  </code></pre>
  <p>Here is my code:</p>
  <pre><code>columnsss = ['key','value'];
  query = &quot;select * from bparst_tags where tag_type = 1 &quot;;
  result = database.cursor(db.cursors.DictCursor);
  result.execute(query);
  result_set = result.fetchall();
  data = &quot;[&quot;;
  for row in result_set:
  `row[&quot;tag_expression&quot;]`)
      data +=  &quot;{'value': %s , 'key': %s },&quot; % ( `row[&quot;tag_expression&quot;]`, `row[&quot;tag_name&quot;]` )
  data += &quot;]&quot; ;    
  df = DataFrame(data , columns=columnsss); 
  </code></pre>
  <p>But when I pass the data in <code>DataFrame</code> it shows me</p>
  <blockquote>
  <p>pandas.core.common.PandasError: DataFrame constructor not properly called!</p>
  </blockquote>
  <p>while if I print the data and assign the same value to data variable then it works.</p>