# create 2d array np_height = np.array([1, 2, 3]) np_weight = np.array([4, 5, 6]) array_2d = np.array([np_height, np_weight]) # iterate through it for val in np.nditer(array_2d): print(val)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter