I am trying to combine all data from all columns into one column. Like this:
A B C X
1 2 3 123
3 2 1 --> 321
5 6 7 567
Bearing in mind that we don't know the number of columns and rows.
I tried to solve it like this, but It doesn't work.
db.assign(sum = db.apply(''.join, axis = 1)).drop([db.index], axis = 1)
Thanks in advance