Bottom Page

• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 Numpy Quick start Tutorial leodavinci1990 Programmer named Tim Posts: 17 Threads: 12 Joined: Feb 2019 Reputation: 0 Likes received: 0 #1 Feb-03-2019, 02:21 AM Please look at text below which is from the NumPy tutorial. Shouldn't it say that the 1st axes have a length of 3 since it has 3 elements instead of 2? if not please explain. In the example pictured below, the array has 2 axes. The first axis has a length of 2, the second axis has a length of 3. [[ 1., 0., 0.], [ 0., 1., 2.]] buran Posts: 5,077 Threads: 91 Joined: Sep 2016 Reputation: 356 Likes received: 1089 #2 Feb-03-2019, 07:10 AM (This post was last modified: Feb-03-2019, 07:10 AM by buran. Edited 1 time in total.) First axe has a length of 2, i.e. there are 2 elements - that is there are 2 elements in the outer list Second axe has a length of 3 - that is each of the inner lists has 3 elements If you prefer - there are 2 rows and 3 columns (you can see that from the way you presented the array) « Next Oldest | Next Newest »

Top Page

 Possibly Related Threads... Thread Author Replies Views Last Post numpy.copy / numpy.delete paul18fr 3 368 Jul-26-2019, 01:51 PM Last Post: paul18fr "erlarge" a numpy-matrix to numpy-array PhysChem 2 498 Apr-09-2019, 04:54 PM Last Post: PhysChem

Forum Jump:

Users browsing this thread: 1 Guest(s)