title: python: inserting row at specifc index from one dataframe to another
body: <p>I have a two dataframes as follows:</p>
  
  <p>df1:</p>
  
  <pre><code>    A   B   C   D   E
  0   8   6   4   9   7
  1   2   6   3   8   5
  2   0   7   6   5   8
  </code></pre>
  
  <p>df2:</p>
  
  <pre><code>    M   N   O   P   Q   R   S   T
  0   1   2   3
  1   4   5   6
  2   7   8   9
  3   8   6   5
  4   5   4   3
  </code></pre>
  
  <p>I have taken out a slice of data from <code>df1</code> as follows:</p>
  
  <pre><code>&gt;data_1 = df1.loc[0:1]
  &gt;data_1
      A   B   C   D   E
  0   8   6   4   9   7
  1   2   6   3   8   5
  </code></pre>
  
  <p>Now I need to insert this <code>data_1</code> into <code>df2</code> at specific location of <code>Index(0,P)</code> (row,column). Is there any way to do it? I do not want to disturb the other columns in <code>df2</code>.</p>
  
  <p>I can extract individual values of each cell and do it but since I have to do it for a large dataset, its not possible to do it cell-wise.</p>
  
  <p>Cellwise method:</p>
  
  <pre><code>&gt;var1 = df1.iat[0,1]
  &gt;var2 = df1.iat[0,0]
  
  &gt;df2.at[0, 'P'] = var1
  &gt;df2.at[0, 'Q'] = var2
  </code></pre>