Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = pd.DataFrame(np.random.randn(6,6))
- G = a*2
- C1 = G[0]
- S1 = G[2]
- a[(a>0) & (a<0.5)] = G.multiply(C1+S1, axis='index')[(a>0) & (a<0.5)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement