diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-04-29 17:21:37 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-04-29 17:22:57 -0700 |
commit | c57e6d61ce1f4c1625e903b5a09566954b583e6c (patch) | |
tree | 2f01274230f2370376c68e1aac868ff91faf503c /numpy/lib/tests/test_histograms.py | |
parent | dadfb545e1cc8d873b999d82d331c0c58f11901f (diff) | |
download | numpy-c57e6d61ce1f4c1625e903b5a09566954b583e6c.tar.gz |
MAINT: Remove singleton-dimension insertion in np.pad in favor of not losing the dimension in the first place.
`arr[:,:,0,:,:].reshape(arr.shape[:2] + (1,) + arr.shape[3:])` is much more readable as `arr[:,:,0:1,:,:]` (and easier for subclasses to handle)
Diffstat (limited to 'numpy/lib/tests/test_histograms.py')
0 files changed, 0 insertions, 0 deletions