I have a pandas DataFrame like:
A B
'2010-01-01' 10 20
'2010-02-01' 20 30
'2010-03-01' 30 10
I need to apply some function for every columns and create new columns in this DataFrame with special name.
A B A1 B1
'2010-01-01' 10 20 20 40
'2010-02-01' 20 30 40 60
'2010-03-01' 30 10 60 20
So I need to make two additional columns with names A1 and B2 based on columns A and B ( like name A1 = str(A) + str(1)) by multiplying by two. Is it possible to do this using DataFrame.apply() or other construction?