[Numpy-discussion] ANN: SciPy 1.8.1

2022-05-18 Thread Tyler Reddy
Hi all, On behalf of the SciPy development team, I'm pleased to announce the release of SciPy 1.8.1, which is a bug fix release that restores Pythran usage on Windows. Sources and binary wheels can be found at: https://pypi.org/project/scipy/ and at: https://github.com/scipy/scipy/releases/tag/v1

[Numpy-discussion] Re: ndarray shape permutation

2022-05-18 Thread Paul Korir
Thank you very much for your replies. xarray is perfect though I'm not sure what overhead I'm paying to get the following: import numpy as np import xarray as xr data = xr.DataArray(np.random.randn(2, 3, 4), dims=("x", "y", "z")) data.transpose('z', 'y', 'x').shape data.transpose('y', 'z', 'x').s