I want to group Columns in pandas : <p>I have Data frame which consist different columns and I want to group columns in the bases of AccountID
 <a href="https://i.stack.imgur.com/V755B.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V755B.jpg" alt="in the bases of AccountID"></a> </p>

<p>and expected output looks like this
<a href="https://i.stack.imgur.com/E4MLs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E4MLs.jpg" alt="enter image description here"></a></p>
