I have two dataframes df1 and df2. df1 contains the information of the age of people, while df2 contains the information
df1
df2
You can also use the join method:
join
df1.set_index("Name").join(df2.set_index("Name"), how="left")
edit: added set_index("Name")
set_index("Name")