title: Create a new column from matched element between different columns containing arrays
body: <p>I have a data frame where the the rows of the column col2 contains lists of numbers</p>
  
  <pre><code>    col1   col2
  
  1 . 54319    54319, 54317
  2 . 54317    37604, 37603, 37605
  3 . 37603    123
  4 . 37604    124
  5 . 37605    1255
  </code></pre>
  
  <p>I would like to find matches between col1 and col2 and create a new column 'new' appending the groups in the col2 containing matches with col1</p>
  
  <p>Result</p>
  
  <pre><code>    col1   col2                    new
  
  1 . 54319    54319, 54317          54319, 54317
  2 . 54317    37604, 37603, 37605   54319, 54317
  3 . 37603    123                   37604, 37603, 37605
  4 . 37604    124                   37604, 37603, 37605
  5 . 37605    1255                  37604, 37603, 37605
  </code></pre>
  
  <p>This is my code, but it crashes. I guess I cannot read the lists contained in the rows of col2[rows]</p>
  
  <pre><code>new = []
  for val in col1:
      for i in col2:
          if val in i:
             new.append(i)
          else:
             continue
  </code></pre>
  
  <p>print(new)</p>