I have data
id
30046
30049
30040
30046
And next excel
id mail
30049 [email protected]
30046 [email protected]
30040 [email protected]
I want to change id from 1 file to mail from 2 excel. Desire output
id
[email protected]
[email protected]
[email protected]
[email protected]
I try
for (id1, id2, mail) in zip(ids1, ids2, mails):
if id1 == id2:
ids1.replace(id1, mail)
df = pd.read_excel('name.xlsx'), but don't want to change excel