title: How to merge multiple dummy variables columns which were created from a single categorical variable into single column in python?
body: <p>I am working on IPL dataset which has many categorical variables one such variable is toss_winner. I have created dummy variable for this and now I have 15 columns with binary values. I want to merge all these column into single column with numbers 0-14 each number representing IPL team. </p>
  
  <p><a href="https://i.stack.imgur.com/e7Cvl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e7Cvl.png" alt="Screenshot of the dummy variables"></a></p>