I have:
df1 = [['10103', 'Baldwin, C', 'SFEN'], ['10115', 'Wyatt, X', 'SFEN']]
What would be the best way to concatenate the items within so that I could get something like:
[['10103 - Baldwin, C', 'SFEN'], ['10115 - Wyatt, X', 'SFEN']]
If I try something like
for i in df1:
df1[0:1] = [' - '.join(df1[0:1])]
I get TypeError: sequence item 0: expected str instance, list found.
jointake list of string, you are passing list of list of string