I exported a Hex file but the leading zeros are gone. How can I make them come back
I have this originally this:
A B C
0 89 02 FC
1 89 02 FC
2 89 02 FC
When exported it became like this:
A B C
0 89 2 FC
1 89 2 FC
2 89 2 FC
I tried this:
df['B'] = df['B'].apply(lambda x: '{0:0>3}'.format(x))
But I am getting this:
A C C
0 89 02.0 FC
1 89 02.0 FC
2 89 02.0 FC
How can I export it and let it stay as Hex or ad leading zeros without been a float? (Leading zeros in position)?