title: Pandas Merge row data with multiple values to Python list for a column
body: <p>I have a data-frame that looks like </p>
  
  <h2>DATA</h2>
  
  <pre><code>*id*,             *name*,                      *URL*,                 *Type*  
      2,             birth_france_by_region,    http://abc. com,       T1 
      2,             birth_france_by_region,    http://pt. python,     T2 
      3,             long_lat,                  http://abc. com,       T3 
      3,             long_lat,                  http://pqur. com,      T1 
      4,             random_time_series,        http://sadsdc. com,    T2 
      4,             random_time_series,        http://sadcadf. com,   T3
      5,             birth_names,               http://google. com,    T1 
      5,             birth_names,               http://helloworld. com,T2 
      5,             birth_names,               http://hu. com,        T3
  </code></pre>
  
  <p>I want a this dataframe to merge the rows where id are equal and have a list of <strong>Type</strong> corresponding list of <strong>URL</strong> 
  so final output should be like</p>
  
  <pre><code>*id*, *name*,             *URL*,                               *Type*  
  2,birth_france_by_region,  [http://abc .com,http://pt.python], [T1,T2] 
  3,long_lat,           [http://abc .com,http://pqur. com],       [T3,T1] 
  4,random_time_series, [http://sadsdc. com,http://sadcadf .com,],[T2,T3] 
  5,birth_names,        [http://google .com,http://helloworld. com,
                                         http://hu. com] ,   [T1,T2,T3]
  </code></pre>