Re: the python name

2019-01-10 Thread DL Neil
Chris, On 11/01/19 10:06 AM, Chris Angelico wrote: On Fri, Jan 11, 2019 at 8:01 AM DL Neil wrote: PS the smart reply: who do you think coded the Alt-Tab window-switching mechanism? or, whose shoulders' do you young, whipper-snappers think you're standing on? (and, "please get down, and go and

Re: How can I find the indices of an array with float values in python?

2019-01-10 Thread Madhavan Bomidi
Thank you all for various ways of finding the indices. -- https://mail.python.org/mailman/listinfo/python-list

RE: How can I find the indices of an array with float values in python?

2019-01-10 Thread Avi Gross
Madhavan, Others have given you reasonable answers out of the ever so many many many ways you can do what you asked. I offer a question to consider in case your needs are different or you have not considered other more pythonic ways. What do you want to do with your data and is this the best way

Re: the python name

2019-01-10 Thread Chris Angelico
On Fri, Jan 11, 2019 at 8:01 AM DL Neil wrote: > PS the smart reply: who do you think coded the Alt-Tab window-switching > mechanism? > or, whose shoulders' do you young, whipper-snappers think you're > standing on? (and, "please get down, and go and wash your feet") Hold on hold on. "Window-swit

Re: the python name

2019-01-10 Thread DL Neil
On 11/01/19 8:57 AM, Chris Angelico wrote: On Fri, Jan 11, 2019 at 6:48 AM DL Neil wrote: Working with a bunch of younger folk (who may technically be of the age of 'grand-children' - pardon me, I almost fell over my (long, grey) beard), I am frequently the butt of their gentle, if ageist, joke

Re: the python name

2019-01-10 Thread DL Neil
On 8/01/19 12:04 PM, Dennis Lee Bieber wrote: On Tue, 8 Jan 2019 10:10:13 +1300, DL Neil declaimed the following: Why is that obscure? It makes perfect sense - to those of us who have used tape/serial storage! Perhaps less-so to [bobble-heads], sorry I mean people who grew-up with 'bubble mem

Re: the python name

2019-01-10 Thread Chris Angelico
On Fri, Jan 11, 2019 at 6:48 AM DL Neil wrote: > Working with a bunch of younger folk (who may technically be of the age > of 'grand-children' - pardon me, I almost fell over my (long, grey) > beard), I am frequently the butt of their gentle, if ageist, jokes. > However, my sardonic amusement is t

Re: the python name

2019-01-10 Thread DL Neil
On 8/01/19 4:59 PM, rbowman wrote:> On 01/07/2019 02:10 PM, DL Neil wrote: >> Why is that obscure? It makes perfect sense - to those of us who have >> used tape/serial storage! Perhaps less-so to [bobble-heads], sorry I >> mean people who grew-up with 'bubble memory' (Memory sticks, 'flash >> driv

Re: How can I find the indices of an array with float values in python?

2019-01-10 Thread MRAB
On 2019-01-10 17:05, Madhavan Bomidi wrote: Sorry for re-posting with a correction. I have an array (numpy.ndarray) with shape (1500L,) as below: x = array([ 3.e+01, 6.e+01, 9.e+01, ..., 4.4940e+04, 4.4970e+04, 4.5000e+04]) Now, I

Re: How can I find the indices of an array with float values in python?

2019-01-10 Thread Rob Gaddi
On 1/10/19 9:25 AM, Peter Otten wrote: Madhavan Bomidi wrote: I have an array (numpy.ndarray) with shape (1500L,) as below: x = array([ 3.e+01, 6.e+01, 9.e+01, ..., 4.4940e+04, 4.4970e+04, 4.5000e+04]) Now, I wanted to determine the indic

Re: How can I find the indices of an array with float values in python?

2019-01-10 Thread Peter Otten
Madhavan Bomidi wrote: > I have an array (numpy.ndarray) with shape (1500L,) as below: > > x = array([ 3.e+01, 6.e+01, 9.e+01, ..., > 4.4940e+04, 4.4970e+04, 4.5000e+04]) > > Now, I wanted to determine the indices of the x values between 0.0

RE: How can I find the indices of an array with float values in python?

2019-01-10 Thread David Raymond
Maybe something along the lines of... indices = [i for i, val in enumerate(x) where 0 <= val <= 15000] -Original Message- From: Python-list [mailto:python-list-bounces+david.raymond=tomtom@python.org] On Behalf Of Madhavan Bomidi Sent: Thursday, January 10, 2019 12:05 PM To: python

Re: How can I find the indices of an array with float values in python?

2019-01-10 Thread Madhavan Bomidi
Sorry for re-posting with a correction. I have an array (numpy.ndarray) with shape (1500L,) as below: x = array([ 3.e+01, 6.e+01, 9.e+01, ..., 4.4940e+04, 4.4970e+04, 4.5000e+04]) Now, I wanted to determine the indices of the x values bet

How can I find the indices of an array with float values in python?

2019-01-10 Thread Madhavan Bomidi
I have an array (numpy.ndarray) with shape (1500L,) as below: x = array([ 3.e+01, 6.e+01, 9.e+01, ..., 4.4940e+04, 4.4970e+04, 4.5000e+04]) Now, I wanted to determine the indices of the x values between 0.0 and 15.0. While this is simple in M

Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-10 Thread dude . jimbo
Well that escalated quickly :). So, no-one can tell me which component to pip to get rid of "missing ['_sysconfigdata']" error? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Interview Questions

2019-01-10 Thread lingmaaki
Python Interview Questions and answers... http://net-informations.com/python/iq/default.htm -- https://mail.python.org/mailman/listinfo/python-list