title: How to create a new dataframe with every iteration of for loop in Python
body: <p><a href="https://i.stack.imgur.com/RSdJC.png" rel="nofollow noreferrer">Click here to see image</a>   </p>
  
  <pre><code>#### the data is inverted #######
  
  #### To bring back to its original position ####### 
     df_1= df_i.iloc[::-1]
  
  #### Set index again ###################
  df_1.index = range(len(df_1.index))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6mv5J.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  #
  
  <p>In for I am creating a data frame df , But I want the data frame name as df_0, df_1, df_2 .......................... df_n</p>
  
  <p>On every iteration I want create a new data frame, How?</p>
  
  <p>And my count = 22, That means my loop will run for 22 times.</p>
  
  <p>Is there a way that I concat horizontally all the data frames as a single dta frame </p>
  
  <p>14, 15, 16 (from first sheet), 14A, 15A, 16A (from second Sheet), 14B,15B, 16B,(From Third sheet) as col1, col2, col3,col4.......................</p>
  
  <p>Appreciate your help</p>