title: How to count number of combinations in python?
body: <p>In this dataset:
  <a href="https://i.stack.imgur.com/SBhBV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SBhBV.png" alt="enter image description here" /></a></p>
  <p>I want to count number of matches between two teams.</p>
  <p>Is there any tool in python for this?</p>