I have two dataframes (both are datatype float). The first one is called Prices which contains only prices:
The second one is called Table_ScenarioPercentages which contains percentages where the prices need to be multiplied by:
So what I want to do is multiply the value of Period 20240201 (Prices) by Month 0 (Table_ScenarioPercentages), the value of Period 20240301 (Prices) by Month 1 (Table_ScenarioPercentages), etc.
I've tried:
Prices.iloc[:, 0]*Table_ScenarioPercentages.iloc[:, 0] but this just gives a lot of NaN's and the wrong format:
Does someone know how to do this in Python?


