Python Forum
Numpy Quick start Tutorial
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Numpy Quick start Tutorial
#1
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.]]
Reply


Messages In This Thread
Numpy Quick start Tutorial - by leodavinci1990 - Feb-03-2019, 02:21 AM
RE: Numpy Quick start Tutorial - by buran - Feb-03-2019, 07:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 303 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,530 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 2,934 Apr-09-2019, 04:54 PM
Last Post: PhysChem

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020