I have 2 dataframes and I want to add a new column to one of my dataframes from another dataframe '''
(df1)
Id height ...
12 190
13 180
34 173
. . .
(df2)
Id amount ...
12 234
15 256
13 248
. . .
''' how can I add a column "amount" to df1 that contains the value amount of df2 for each Id of df1. the size of df1 and df2 are not equal
df.join(df1.set_index('Id'), on='Id')