title: How to store result in for loop
body: <p>I am trying to create a report using python where for loop iterates for each location but once i run this code it only gives data for last location.How can i store result from this loop.</p>
  
  <pre><code>import inflect
  import pandas as pd  
  
  add_sum_data=pd.read_excel("~Add_Summary_17062018.xlsx")
  
  location_code=add_sum_data.iloc[0:,0]
  
  for GO in location_code:    
      ag_row_data = add_sum_data.loc[add_sum_data["location"]== GO]
  </code></pre>