I want to create a new column in my data frame based on the other two columns, but the new column also has to be a 4-digit code.
A B
1 2
1 3
..
1 10
these are my two columns that I have. I want a third column C to be those first ones combined, but to a 4-digit code. Kind of like this.
A B C
1 2 1002
1 3 1003
...
1 10 1010
I hope I made it clear. Is there a way to do it?