Thanks for any help. I am trying to multiply several columns with several other columns to create, in this example, 6 new columns (AC, AD, AE, BC, BD, BE ). As you can see there is a datetype index and an id column. This table is only an example of a much larger Dataframe.
id A B C D E
2017-12 93426 0.687377 -4.000753 -3.191796 0.235393 0.0071
2017-12 93428 0.240590 -4.000753 -3.191796 0.235393 0.0071
2017-12 93429 0.052937 -4.000753 -3.191796 0.235393 0.0071
2017-12 93434 0.910938 -4.000753 -3.191796 0.235393 0.0071
2017-12 93436 0.137670 -4.000753 -3.191796 0.235393 0.0071
2018-01 93426 3.362003 -2.997135 -2.029331 1.016955 0.011298
2018-01 93428 1.330341 -2.997135 -2.029331 1.016955 0.011298
2018-01 93429 1.579284 -2.997135 -2.029331 1.016955 0.011298
My attempt:
df[['A','B']].mul(df[['C','D','E']])
>>> TypeError: Cannot compare type 'Period' with type 'str'
Any help is always greatly appreciated!