Re: [Numpy-discussion] Improving performance of the `numpy.any` function.

2021-04-14 Thread dan_patterson
a = np.zeros(1_000_000) a[100] = 1 %timeit np.any(a) 814 µs ± 17.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) %timeit np.any(a == 1) 488 µs ± 5.68 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) Haven't investigated further since your times are much longer than mine and

Re: [Numpy-discussion] Numpy 1.20.1 availability

2021-03-14 Thread dan_patterson
Thanks, glad to hear that people are aware of the delay. As I said, there are other reasons beyond my control, for the limitations. The wait is on. -- Sent from: http://numpy-discussion.10968.n7.nabble.com/ ___ NumPy-Discussion mailing list NumPy-Discu

[Numpy-discussion] Numpy 1.20.1 availability

2021-03-13 Thread dan_patterson
Any idea why the most recent version isn't available on the main anaconda channel. conda-forge and building are not options for a number of reasons. I posted a package request there but double digit days have gone by it just got a thumbs up and package-request tag https://github.com/ContinuumIO/

Re: [Numpy-discussion] String accessor methods

2021-03-06 Thread dan_patterson
The are in np.char mystr = np.array(["test first", "test second", "test third"]) np.char.title(mystr) array(['Test First', 'Test Second', 'Test Third'], dtype='http://numpy-discussion.10968.n7.nabble.com/ ___ NumPy-Discussion mailing list NumPy-Discuss