I have 3 numeric columns say as below:
import pandas as pd
df = pd.DataFrame()
df['col1']=[123456, 123456, 123456 ]
df['col2']=[7, 65, 150]
df['col3']=[1, 35, 60]
I want to create a new column concatenating these three columns after converting each of them to Hex numbers so that col1 is converted to 5 digit Hex, col2 is converted to 3 digit Hex and col3 is converted to 2 digit Hex. I can convert each one of them to Hex applying lambda function however, I am not able to consistently have 10 characters in the new column. Any suggestion?