I have two pandas dataframes like this:
df1:
Product pricing_type
prod1 I
prod2 p
prod3 E
df2:
id internal_price external price pilot_price
1 0.7 0.89 0.3
The output I want: df3
Product pricing_type price
prod1 I 0.7
prod2 P 0.3
prod3 E 0.89
How can I achieve this efficiently?
df2
? Do you need match values bypricing_type
?