0

I have a dataframe (df) with lists in several columns. Lists can be empty or include from 0 to N numbers ( I think they are stored as strings numbers)

colA colB from dataframe with lists df

  • View in the image below colA and colB

enter image description here

I have a dataframe with 2 columns ID and name and I would like to replace in the initial dataframe all Strings with their names

say this is dfIDs with columns p_Id and p_Name

enter image description here

I am interested in having lists withs strings [Peter, Will] based on ids

Regards

  • I recommend you follow this post and post code to create a simplified example. https://stackoverflow.com/a/20159305/6361531 – Scott Boston Dec 08 '21 at 18:05

0 Answers0