title: Is there any way make column for each category under each group?
body: <p>There are two column both are categorical. I want to groupby by first columns lets <code>age_group</code> and my other column <code>Engagement_category</code> should make new column by each element.</p>
  
  <p>I did the groupby on first column <code>age_group</code>.</p>
  
  <pre><code>| age_group    | Engagement_category |
  |--------------|---------------------|
  | 21-26        | Not Engaged         |
  | 27-32        | Disengaged          |
  | 33-38        | Engaged             |
  | 39-44        | Disengaged          |
  | 45-50        | Not Engaged         |
  | 50 and Above | Engaged             |
  </code></pre>
  
  <pre><code>group = df.groupby('age_group')
  </code></pre>
  
  <p>The below one is required output:</p>
  
  <pre><code>| age_group | Engaged | Nearly Engaged | Not Engaged | Disengaged |
  |-----------|---------|----------------|-------------|------------|
  | 21-26     | 3       | 4              | 1           | 1          |
  | 27-32     | 4       | 0              | 4           | 0          |
  | 33-38     | 2       | 0              | 1           | 1          |
  </code></pre>
  
  <p>Thank you.</p>