Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas convert entries in a column after groupby in list

df.groupby('a').agg({'b':lambda x: list(x)})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #convert #entries #column #groupby #list
ADD COMMENT
Topic
Name
7+8 =