I have a dataframe where there is a column of character values:
df1
Col1 Col2
A 1
B 2
C 11
D 101
E 1000
I have another dataset that also contains character values but each value has 5 numbers even if it is a small number like below:
df2
Col1A Col2
F 00001
G 00002
H 00011
I 00101
J 01000
How do I add the 0's to df1 so that I can join the two dataframes together?
Expected Output:
df1
Col1 Col2 Col1A
A 00001 F
B 00002 G
C 00011 H
D 00101 I
E 01000 J