Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bizarre numpy sum behaviour
import numpy as np
a = np.load('numpy_array_sum0.npy')
print('a.sum(axis=0)[0] =', a.sum(axis=0)[0])
print('a[:, 0].sum(axis=0) =', a[:, 0].sum(axis=0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.