# Concatenate results of `apply` in pandas

Advertisements I would like to apply a function to each element/row of a pandas Series/DataFrame and concatenate/stack the results into a single DataFrame. E.g., I may start with a Series s = pd.Series(["a", "b,c", "d,e,f"]), and I would like to obtain as a final result res = pd.Series(["a", "b", "c", "d", "e", "f"]) A slow… Read More Concatenate results of `apply` in pandas