I have a pandas Dataframe and Series of the form
df = pd.DataFrame({'Key':[2345,2542,5436,2468,7463],
                   'Segment':[0] * 5,
                   'Values':[2,4,6,6,4]})
print (df)
    Key  Segment  Values
0  2345        0       2
1  2542        0       4
2  5436        0       6
3  2468        0       6
4  7463        0       4
s = pd.Series([5436, 2345])
print (s)
0    5436
1    2345
dtype: int64
In the original df, I want to multiply the 3rd column(Values) by 7 except for the keys which are present in the series. So my final df should look like
What should be the best way to achieve this in Python 3.x?

 
     
    