I have two Dataframes df and df1.
Main DataFrame is as follows:
DF:
start end price
0 A Z 1
1 B Y 2
2 C X 3
3 A Z 4
4 D W 5
Second DataFrame:
DF1:
start end price
0 A Z 100
1 B Y 200
I want the main dataframe df to update the values in 'price' columns based on the start and end in df1. it should update column value for all the rows having the same start and end as in df1. DF:
start end price
0 A Z 100
1 B Y 200
2 C X 3
3 A Z 100
4 D W 5
(all A-Z and B-Y in df should get updated). Is there anyway I can get this output ? In reality the datframes have more columns but I want to update only one column(eg.'Price').