Python numpy.flatiter Función Ejemplo

# welcome to softhunt.net
# Python Program illustrating
# working of ndarray.flat()

import numpy as np

# Working on 1D iteration of 2D array
array = np.arange(15).reshape(5, 3)
print("2D array : \n",array )

print("\nID array : \n", array.flat[0:15])		

print("\nType of array,flat() : ", type(array.flat))

for i in array.flat:
	print(i, end = ' ')
Outrageous Ostrich