title: what should I change in my function
body: <pre><code>list_1  =[1, 2, 3, 4 ]
  
  def fun(list_1):
      for each value in list1:
          # perform some operation and create a new data frame(pandas) for each value in the list
          # so in total I should get 4 data frames.
          print each_value
  
          return new_data_frame
  </code></pre>
  
  <p>When I run <code>fun(list_1)</code> I should get 4 data frames:</p>
  
  <pre><code>1
  data_frame_1
  
  2
  data_frame_2
  
  3
  data_frame_3
  
  4
  data_frame_4
  </code></pre>
  
  <p>but I am getting an ouput only with first value.</p>
  
  <pre><code>1
  data_frame_1
  </code></pre>
  
  <p>so what should I change in my function.</p>