0
                     price                           price
symbol   date                   symbol   date         
AAPL     01/10/20    0          AAPL     01/10/20    130.03
         02/10/20    0                   02/10/20    131.54
MSFT     01/10/20    0          MSFT     01/10/20    130.03
         02/10/20    0                   02/10/20    131.54 

I have 2 multi dimensional dataframes: df1 and df2 The indexes are identical.

How can I quickly "paste" the data of df2 onto df1 without a for loop? What is the fastest way?

Also, how can I paste only the data of ONE symbol?

alexx0186
  • 1,557
  • 5
  • 20
  • 32
  • `df1.join(df2)`? `pd.concat([df1, df2])`? `df1.merge(df2, left_index=True, right_index=True)`? etc. – mozway Nov 08 '22 at 13:25

0 Answers0