Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Concatenate strings from several rows using Pandas groupby

full[['Cus. Name','cus_email_1']].groupby(['Cus. Name'])['cus_email_1'].transform(lambda x: ', '.join(x))
 
PREVIOUS NEXT
Tagged: #Concatenate #strings #rows #Pandas #groupby
ADD COMMENT
Topic
Name
7+2 =