title: Storing & Adding Pandas DataFrame In A Loop
body: <p>I have a loop that generates random results every time thanks to my Generate_Dataframe function.  So the name columns stay the same but my "Result" column is always a different float value.</p>
  
  <pre><code>def Generate_Dataframe():
   #Do Some Stuff
    return DataFrame  
  </code></pre>
  
  <p>an example of what I get back would be something like...</p>
  
  <pre><code>DataFrame
  Name 1       Name 2        Result
  Joe          Smith           5.5
  Jake         Smith           4.5
  Jim          Smith           2.5
  Joanne       Smith           1.5
  </code></pre>
  
  <p>So when I run my loop I'm generating dataframes like the one above, I want to be able to update/add the Result column each time.</p>
  
  <pre><code>for x in range(1,5):
      New_DataFrame = Generate_DataFrame()
  </code></pre>
  
  <p>I haven't been able to find a way to store the dataframe.  Optimizing for speed would be great.  Thanks in advance!</p>