Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def func():
- return (df['Gold']-df['Gold.1']).idxmax()
- CPU times: user 4.56 ms, sys: 136 µs, total: 4.7 ms
- Wall time: 4.09 ms
- def func1( arr, arr1 ):
- sum = 0
- ind = 0
- t = 0
- for i,v in zip(arr, arr1) :
- if abs(i - v) > sum :
- sum = i
- ind = t
- t += 1
- return df.index[ind]
- CPU times: user 263 µs, sys: 63 µs, total: 326 µs
- Wall time: 333 µs
Add Comment
Please, Sign In to add comment