Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alist = [0.141, 0.29, 0.585, 0.547, 0.233]
- np.cumsum(alist)
- array([ 0.141, 0.431, 1.016, 1.563, 1.796])
- list(np.cumsum(alist))
- [0.14099999999999999,
- 0.43099999999999994,
- 1.016,
- 1.5630000000000002,
- 1.7960000000000003]
Add Comment
Please, Sign In to add comment