title: How to create column inside a column in a pandas dataframe?
body: <p>Following is the code used to create a DataFrame.</p>
  <pre><code>import pandas as pd
  cols = ['Col 1', 'Col 2', 'Col 3']
  data = [['Row 1', '1.0', '{&quot;tag1&quot; : {0: \&quot; \&quot;, 1: \&quot; \&quot;}, &quot;tag2&quot;: {2: \&quot; \&quot;, 3: \&quot; \&quot;}}'], ['Row 2', '2.0', '{&quot;tag1&quot; : {0: \&quot; \&quot;, 1: \&quot; \&quot;}, &quot;tag2&quot;: {2: \&quot; \&quot;, 3: \&quot; \&quot;}}']]
  df = pd.DataFrame(columns = cols, data = data)
  </code></pre>
  <p>Below is the output of the DataFrame <code>df</code></p>
  <pre><code>   Col 1 Col 2                                                  Col 3
  0  Row 1   1.0  {&quot;tag1&quot; : {0: &quot; &quot;, 1: &quot; &quot;}, &quot;tag2&quot;: {2: &quot; &quot;, 3: &quot; &quot;}}
  1  Row 2   2.0  {&quot;tag1&quot; : {0: &quot; &quot;, 1: &quot; &quot;}, &quot;tag2&quot;: {2: &quot; &quot;, 3: &quot; &quot;}}
  </code></pre>
  <p>How can I convert the above DataFrame into any of the tabular format as shown below?</p>
  <p><a href="https://i.stack.imgur.com/I9d8N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I9d8N.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/alUv5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/alUv5.png" alt="enter image description here" /></a></p>