Re: [Numpy-discussion] String accessor methods
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-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Numpy 1.20.1 availability
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/anaconda-issues/issues/12309 I realize it could be the "times" or maybe no one is aware of its absence. -- Sent from: http://numpy-discussion.10968.n7.nabble.com/ ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Numpy 1.20.1 availability
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-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Improving performance of the `numpy.any` function.
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 secondly the equality check for 1 implies that perhaps a short circuit actually exists somewhere -- Sent from: http://numpy-discussion.10968.n7.nabble.com/ ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion