Tue Jan 04 2022 08:34:39 GMT+0000 (Coordinated Universal Time)
Saved by @ahoeweler
# 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)
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments