I have the following dataframe:
A B
645 72436
645 73311
543 432666
432 6443
432 765321
I need to create a column C
, with a constant length of 10 digits.
C
should be created by concatenating B
to A
and padding with zeros between the two concatenated columns.
That is to say:
A B C
645 72436 6450072436
645 73311 6450073311
543 432666 5430432666
432 6443 4320006443
432 765321 4320765321
The concatenation of A
and B
will always be 10 digits or less, so there are no cases in which C
will have more than 10 digits.