I have two dataframes Full Table
and Dataset
, the first one has Key_Identifier
Accesion
and Sequence
columns while the other has only my data of interest with Accesion
and Sequence
columns.
What I Have
in Full Table
:
Key_Identifier Accesion Sequence
ARG1 AA001 AAACTGGG
ARG2 AA002 AAACTGGC
ARS2 AA003 AAACTGGG
ART1 AA004 AAACTGGA
ARG3 AA005 AAACTGCG
ART4 AA006 AAACTGGG
and in Dataset
:
Accesion Sequence
AA001 ACTGGG
AA003 ACTGGG
AA005 ACTGCG
AA006 ACTGGG
What I Want
I want to match Accesion
from Dataset
in Full Table
and replace its name to Key_Identifer
from Full Table
keeping Sequence
intact in Dataset
. Like:
Accesion Sequence
ARG1 ACTGGG
ARS2 ACTGGG
ARG3 ACTGCG
ART4 ACTGGG
which is the best way to do this?