title: how to make percentage with pivot columns using pivot in pandas
body: <p>I have dataframe</p>
  
  <pre><code>Resolution    category    month  region
  &lt;=10days       cat1       nov    global
  &lt;=10days       cat2       nov    global
  11-15days      cat1       nov    global
   &gt;15days        cat1       nov    global
  </code></pre>
  
  <p>Now, I want to build these categories based on the column "resolution and Category":</p>
  
  <pre><code> Resolution    cat1    cat2   overallcat     cat1%  cat2%  overallcat%
   &lt;=10days       1       1      2            
    11-15days      1       0      1            
    &gt;15days        1       0      1           
  </code></pre>