I have 3 series with data like below
s1 = [1,1,3]
s2 = [2,3,2]
s3 = [4,2,1]
I want to create a new series with values such that
s_new = [124,132,321]
please note that s_new = int(''.join(s1,s2,s3))
I know the above syntax is wrong but you get the idea.
>Solution :
You can do with pandas agg
s = pd.DataFrame([s1,s2,s3]).astype(str).agg(''.join).astype(int).tolist()
Out[334]: [124, 132, 321]