title: How do you group pandas dataframe rows based on permutation of booleans?
body: <p>Imagine there is a pandas dataframe with five columns and n rows. Each column holds a boolean value.</p>
  <p>Maths says there should be 32 permutations of boolean values.</p>
  <p>How do I group them by the permutation of boolean values associated with each row so I can get a count on each group or return other properties?</p>
  <p>For example, how do I find out how many rows associated with TTTTTs or TTTTFs or whatever permutation I'm interested in?</p>