Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0 'NOK' 10
- 1 'NOK' 20
- 2 'SEK' 30
- 3 'USD' 40
- 0 'NOK' 2
- 1 'SEK' 1
- 2 'USD' 7
- 0 'NOK' 20
- 1 'NOK' 40
- 2 'SEK' 30
- 3 'USD' 280
- df1['test']=0
- df1.loc[df1[1]=='NOK','test']=df1[1][df1[1]=='NOK']*df2[df2[1]=='NOK]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement