title: How to find the intersection (common elements) between two columns of a single csv file in python?
body: <p>I am having two columns almost (1000 rows) in a csv file without headers (tab separated). The sample content of the column values are as follows. It can be a phrase or a single word.</p>
  
  <p>CSV File Format:</p>
  
  <pre><code>ac           home          
  
  home         big         
  
  new city     city
  
  city         paris
  
  heat         waves
  
  blood        blood pressure
  
  relation     blood
  </code></pre>
  
  <p>Input Format (Edit):</p>
  
  <p><a href="https://i.stack.imgur.com/sj7Au.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sj7Au.png" alt="enter image description here"></a></p>
  
  <p>I want to compute the common elements between two columns of a csv file? Does there exist any way. I absolutely do not have no idea regarding how to achieve this.</p>
  
  <p>I am completely new to file (<code>.csv</code>) and its variants. Any help is deeply appreciated.</p>
  
  <p>Output</p>
  
  <pre><code>home, city, blood
  </code></pre>
  
  <p>I know how to compute the intersection of two dictionaries, lists etc. But that won't help me to achieve the desired solution.</p>