title: Creating a pair from Python DataFrame
body: <p><a href="https://i.stack.imgur.com/Vfrjd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vfrjd.png" alt="enter image description here" /></a></p>
  <p>Please find the image of my python dataframe.</p>
  <p>Expected Output: A pairing of Developer and Tester from random team but not same team. And same team and role cannot be consecutive</p>
  <pre><code>{
  Person1: Person6,
  Person4: Person9,
  ......
  }
  </code></pre>
  <p>For example sake I have posted small dataset. But we can extend the dataset</p>