title: list (which contain a dict in it) inside dict to data frame
body: <p>Hi I have the following data</p>
  <pre><code>data = {
      &quot;a&quot;: 1,
      &quot;b&quot;: 2,
      &quot;c&quot;: 3,
      &quot;d&quot;: 4,
      &quot;efgh&quot;: [
          {
              &quot;e&quot;: 5,
              &quot;f&quot;: 6,
              &quot;g&quot;: 7,
              &quot;h&quot;: 8
          }
      ]
  }
  </code></pre>
  <p>I would like to convert it to pandas data frame with the following format</p>
  <p><img src="https://i.stack.imgur.com/zbm5h.jpg" alt="image" /></p>
  <p>I have tried with following method</p>
  <pre><code>df = pd.DataFrame(data)
  df
  </code></pre>
  <p><img src="https://i.stack.imgur.com/ayfCA.jpg" alt="image" /></p>