title: Python dict contain dataframes , how to explode them in to separate rows
body: <pre><code>R1 = {
      'mar': 'BS',
      'summary': pd.DataFrame({
          &quot;year&quot;: [2002, 2003],
          &quot;customers&quot;: [400, 230],
          &quot;count&quot;: [180, 115]}),
      'params': {
          'r': 1,
          'o': 4
      }
  }
  
  R2 = {
      'mar': 'NY',
      'summary': pd.DataFrame({
          &quot;year&quot;: [2002, 2003],
          &quot;customers&quot;: [410, 220],
          &quot;count&quot;: np.array([180, 115])}),
      'params': {
          'r': 2,
          'o': 5
      }
  </code></pre>
  <p>Convert this to below format</p>
  <pre><code>
     mar      r   o   year    customers   count
  0  NY       0.00    0.0     2002    58      400   
  1  NY       0.00    0.0     2003    220         230             
  2  BS       0.02    0.0     2002    180         410             
  3  BS       0.02    0.0     2003    115         220             
  </code></pre>
  <p>I think these sufficient details, please help me to write this function, I am new to handling this</p>