I want to merge several strings in a dataframe based on a groupedby in Pandas.
This is my code so far:
import pandas as pd from io import StringIO
The answer by EdChum provides you with a lot of flexibility but if you just want to concateate strings into a column of list objects you can also:
output_series = df.groupby(['name','month'])['text'].apply(list)