Using pandas=1.1.5. I want to update the values from df2 to df1. But df2 has new indices, and these are not appended to df1 when I use update. See below for details. Thank you
df1
      | Revenue |  Profit   | Sales |
0      |  100    |  300      |  1    |
1      |  500    |  900      |  3    |
2      |  200    |  100      |  4    |
df2
       | Sales |
0       | 10   |
6       |  12    |
desired df
      | Revenue |  Profit   | Sales |
0      |  100    |  300      |  10    |
1      |  500    |  900      |  3    |
2      |  200    |  100      |  4    |
6      |  Nan    |  Nan      |  12   |
df from using update
df1.update(df2)
      | Revenue |  Profit   | Sales |
0      |  100    |  300      |  10    |
1      |  500    |  900      |  3    |
2      |  200    |  100      |  4    |
 
     
     
    