0

I want to concatenate these two dataframes in pandas.

df1:

Month Date ID
12    01   01
12    01   02
12    02   03 
12    02   01

df2:

ID Name
01 Jack
02 Lu
03 James

new df:

Month Date ID Name
12    01   01 Jack
12    01   02 Lu
12    02   03 James
12    02   01 Jack

Can anyone help me with this? See clear form here:enter image description here

Vaishali
  • 37,545
  • 5
  • 58
  • 86

1 Answers1

1
df1.merge(df2, how='outer', on='ID')