Answers for "accessing a numpy array index"

0

accessing a numpy array index

import numpy as np

arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])


  print('2nd element on 1st dim: ', arr[0, 1])
Posted by: Guest on May-24-2021

Browse Popular Code Answers by Language