title: Dataframe : Convert python list to group of dataframes?
body: <p>I have a list</p>
  <p>data_list</p>
  <pre><code>    [['mark', 1], ['tom', 2], ['mark', 3], ['mark', 4], ['tom', 5], ['stuart', 6]]
  </code></pre>
  <p>Passing data_list values to function here.</p>
  <pre><code>    for name_list in data_list:
          convertMerge(name_list)
  </code></pre>
  <p>And a function which takes list and converts it to df and save it.</p>
  <pre><code>    def convertMerge(name_list):
          df = pd.DataFrame([name_list],columns=['name','id'])
          df.to_csv('names'.csv)
  </code></pre>
  <p>I'm trying to merge/append/concat the df's if it has same <code>name</code>.</p>
  <p>(This must happen inside the <code>convertMerge</code> function ).</p>
  <p>Resultant output should have df like this:</p>
  <pre><code>     df with mark 
  
              mark.csv
  
                  name    id
              0   mark    1
              1   mark    3
              2   mark    4
  
      df with tom 
            
              tom.csv
  
                  name    id
              0   tom     2
              1   tom     5
  
  
      df with stuart
  
              stuart.csv`
  
                  name    id
              0   stuart  6
  </code></pre>