Concatenating multiple data dictionaries in python
<p>I have created multiple data dictionaries with <code>year_quarter</code> key. Then I used <code>.describe()</code> on one of the columns I was interested to study, column <code>A</code>. Now I want to create a <code>DataFrame</code> with the statistics created with <code>.describe()</code>.
This is what I did:</p>

<pre><code>H_cltn = {} #original data dictionaries
stat_cltn = {} 

QY =['2013_1', '2013_2', '2013_3', '2013_4']

for item in QY:
    stat_cltn[item] = H_cltn[item]['A'].describe()

df = pd.DataFrame(['count','mean','std','min','25%','50%','75%','max'])
for item in QY:
    df[item] = pd.Series(stat_cltn[item])
</code></pre>

<p>But this gives me <code>NaN</code> values for the whole table.</p>