I am trying to re-create a VBA macro that I have using Python. Could someone please tell me the FOR statement I should use, in order to get below result? Thank you very much.
file 1:
Product Colour Price
Book NaN 5
Table NaN 10
Chair NaN 7
file 2:
Colour
Blue
Red
Green
Expected result (file 1) after the loop:
Product Colour Price
Book Blue 5
Table Blue 10
Chair Blue 7
Book Red 5
Table Red 10
Chair Red 7
Book Green 5
Table Green 10
Chair Green 7