Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
np.array question
#1
Morning all,

I am a python beginner and was playing around.

I ran into a roadblock when the original np.array was set up to use a 9 varriable array like below...

adjacent_facies = np.array([[1], [0,2], [1], [4], [3,5], [4,6,7], [5,7], [5,6,8], [6,7]])
and I need to convert it for a 6 variable breakdown and get an index error...

IndexError: index 6 is out of bounds for axis 0 with size 6

Any help would be appreciated as I do not really understand the np.array functionality fully yet.

Thanks,

-RH
Reply


Messages In This Thread
np.array question - by hissonrr - Apr-19-2020, 01:49 PM
RE: np.array question - by buran - Apr-19-2020, 01:51 PM
RE: np.array question - by hissonrr - Apr-19-2020, 01:56 PM
RE: np.array question - by hissonrr - Apr-20-2020, 01:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  meta array question meems 5 4,707 Jan-21-2017, 05:17 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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