Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101142

What meaning is '[: , None]'?

Newsgroups comp.lang.python
Date 2016-01-02 04:44 -0800
Message-ID <5607ba13-100b-411c-824a-de80c3c52e33@googlegroups.com> (permalink)
Subject What meaning is '[: , None]'?
From Robert <rxjwg98@gmail.com>

Show all headers | View raw


Hi,

I read a code snippet, in which object w_A is:


w_A
Out[48]: array([ 0.10708809,  0.94933575,  0.8412686 ,  0.03280939,  0.59985308])


Then, I don't know what is '[:  ' below:
vs_A = w_A[:, None] * xs


I don't find the answer after searching around 
Could you explain above code to me?
Thanks,

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

What meaning is '[: , None]'? Robert <rxjwg98@gmail.com> - 2016-01-02 04:44 -0800
  Re: What meaning is '[: , None]'? Steven D'Aprano <steve@pearwood.info> - 2016-01-03 02:39 +1100
  Re: What meaning is '[: , None]'? Rustom Mody <rustompmody@gmail.com> - 2016-01-02 07:41 -0800

csiph-web