Say I have a dataframe A
as follows:
id full_name
1 ABC Ltd.
2 NY BCD Ltd.
3 SH ZY Ltd.
4 Soho Company
also another dataframe B
:
name id
ABC
NY BCD
SH ZY
Soho
If name
in B
is in full_name
, then I I want to place the values of id
from dataframe A
to id
of B
.
How can I do that in Python? Thanks.