Say I have below data frame named df where the column names are Name and Age:
and I have a list [Jack, Sarah]. I want to get [28, 21] (the order of the names is important). How can I do this most effectively?
Say I have below data frame named df where the column names are Name and Age:
and I have a list [Jack, Sarah]. I want to get [28, 21] (the order of the names is important). How can I do this most effectively?
