Advertisement
Guest User

Sample

a guest
Dec 12th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. a = pd.DataFrame(np.random.randn(6,6))
  2.  
  3. G = a*2
  4. C1 = G[0]
  5. S1 = G[2]
  6.  
  7. 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