title: Grouping of rows in excel using python
body: <p>I am automating certain excel tasks. Right now, I need to append some missing data into a table which uses Outline levels. I have been using pywin32 all along and I have come to the point where I have appended missing data with outline levels.</p>
  
  <p>I can specify the outline levels using this piece of code:</p>
  
  <pre><code>xlSheet.Rows(row_number).OutlineLevel=3
  </code></pre>
  
  <p>But the problem is that I can't specify that this row-<code>PLA(Outline level=3)</code> should come under this row-<code>Incoming &amp;Outgoing money(Outline Level=2)</code>.</p>
  
  <p>Can you guys help me with a solution (using win32)?</p>
  
  <p><a href="https://i.stack.imgur.com/FwpQc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FwpQc.png" alt="enter image description here"></a></p>