Aug-14-2021, 10:03 AM
Hello everyone
I have a simple problem but for the life of me I can't find any straightforward answer on how to do it. So l have one dataframe with a column email and a column acronym. Another dataframe has the same columns. My goal is now to update the acronym in the first dataframe based on a match between the email in the first and the second dataframe. To visually illustrate:
df1:
Email - Acronym
a@a.com A
b@b.com Nan
df2:
Email - Acronym
a@a.com A
b@b.com B
c@c.com C
My goal is to update df1's Acronym on the second row, based on whats found in df2. I have been delving in the documentation of pandas for a while, to no avail. Any helpers? Thanks!
I have a simple problem but for the life of me I can't find any straightforward answer on how to do it. So l have one dataframe with a column email and a column acronym. Another dataframe has the same columns. My goal is now to update the acronym in the first dataframe based on a match between the email in the first and the second dataframe. To visually illustrate:
df1:
Email - Acronym
a@a.com A
b@b.com Nan
df2:
Email - Acronym
a@a.com A
b@b.com B
c@c.com C
My goal is to update df1's Acronym on the second row, based on whats found in df2. I have been delving in the documentation of pandas for a while, to no avail. Any helpers? Thanks!