Python dict with values as tuples to pandas DataFrame : <p>I have the following dict:</p>

<pre><code>td = {'q1':(111,222), 'q2':(333,444)}
</code></pre>

<p>I would like to convert it to a dataframe that looks like this:</p>

<pre><code>Query    Value1     Value2
q1       111       222
q2       333       444
</code></pre>

<p>I have tried the following:</p>

<pre><code>df = pd.DataFrame(td.items())
</code></pre>

<p>The result looks like this:</p>

<pre><code>    0         1
0   q1  (111,222)
1   q2  (333,444) 
</code></pre>

<p>If it wasn't entirely obvious, I am new to python and pandas. How can I get a dictionary with values as tuples to behave as separate columns in a dataframe?</p>

<p>My end goal is to display percent difference between value1 and value2.  </p>
