I created a dataframe
team3 team4 Dummy
0 F YG 10
1 g Gh 10
2 h Ya 10
3 i nG 10
4 k Yb 10
5 l Yf 10
6 m jk 10
and i'm trying to get expected output as below
team3 team4 Dummy
0 F|g|h|i|k|l|m YG|gh|ya|ng|yb|yf|jk 10
df10 = df9.groupby('Dummy')['team3','team4'].apply('|'.join).reset_index()
getting error :
FutureWarning: Indexing with multiple keys (implicitly converted to a tuple of keys) will be deprecated, use a list instead. df10 = df9.groupby('Dummy')['team3','team4'].apply('|'.join).reset_index()